File tree 5 files changed +8
-5
lines changed
5 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 55
55
run : yarn install --frozen-lockfile
56
56
57
57
- name : Build vite
58
- run : yarn build-vite
58
+ run : yarn ci- build-vite
59
59
60
60
- name : Build plugin-vue
61
61
run : yarn build-plugin-vue
91
91
- name : Prepare
92
92
run : |
93
93
yarn install --frozen-lockfile
94
- yarn build-vite
94
+ yarn ci- build-vite
95
95
yarn build-plugin-vue
96
96
97
97
- name : Lint
Original file line number Diff line number Diff line change 18
18
"build" : " run-s build-vite build-plugin-vue" ,
19
19
"build-vite" : " cd packages/vite && yarn build" ,
20
20
"build-plugin-vue" : " cd packages/plugin-vue && yarn build" ,
21
+ "ci-build-vite" : " cd packages/vite && yarn ci-build" ,
21
22
"ci-docs" : " run-s build-vite build-plugin-vue build-docs"
22
23
},
23
24
"devDependencies" : {
Original file line number Diff line number Diff line change @@ -202,8 +202,8 @@ function isRefreshBoundary(ast) {
202
202
const { declaration, specifiers } = node
203
203
if ( declaration ) {
204
204
if ( declaration . type === 'VariableDeclaration' ) {
205
- return declaration . declarations . every (
206
- ( variable ) => isComponentLikeIdentifier ( variable . id )
205
+ return declaration . declarations . every ( ( variable ) =>
206
+ isComponentLikeIdentifier ( variable . id )
207
207
)
208
208
}
209
209
if ( declaration . type === 'FunctionDeclaration' ) {
Original file line number Diff line number Diff line change 36
36
"build-bundle" : " rollup -c" ,
37
37
"build-types" : " run-s build-temp-types patch-types roll-types" ,
38
38
"build-temp-types" : " tsc --emitDeclarationOnly --outDir temp/node -p src/node" ,
39
+ "ci-build" : " rimraf dist && yarn run-s build-bundle build-types" ,
39
40
"patch-types" : " node scripts/patchTypes" ,
40
41
"roll-types" : " api-extractor run && rimraf temp" ,
41
42
"lint" : " eslint --ext .ts src/**" ,
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ const isBuildTest = !!process.env.VITE_TEST_BUILD
10
10
11
11
// injected by the test env
12
12
declare global {
13
+ // eslint-disable-next-line @typescript-eslint/no-namespace
13
14
namespace NodeJS {
14
15
interface Global {
15
16
page ?: Page
@@ -102,7 +103,7 @@ beforeAll(async () => {
102
103
// https://github.com/facebook/jest/issues/2713
103
104
err = e
104
105
105
- // Closing the page since an error in the setup, for example a runtime error
106
+ // Closing the page since an error in the setup, for example a runtime error
106
107
// when building the playground should skip further tests.
107
108
// If the page remains open, a command like `await page.click(...)` produces
108
109
// a timeout with an exception that hides the real error in the console.
You can’t perform that action at this time.
0 commit comments