File tree 5 files changed +4
-6
lines changed
5 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ The execution command is: `pnpm run [script]` or `npm run [script]`.
95
95
// Lint code
96
96
"lint" : " vsh lint" ,
97
97
// After installing dependencies, execute the stub script for all packages
98
- "postinstall" : " turbo run stub" ,
98
+ "postinstall" : " pnpm -r run stub --if-present " ,
99
99
// Only allow using pnpm
100
100
"preinstall" : " npx only-allow pnpm" ,
101
101
// Install husky
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ npm 脚本是项目常见的配置,用于执行一些常见的任务,比如
95
95
// lint 代码
96
96
"lint" : " vsh lint" ,
97
97
// 依赖安装完成之后,执行所有包的stub脚本
98
- "postinstall" : " turbo run stub" ,
98
+ "postinstall" : " pnpm -r run stub --if-present " ,
99
99
// 只允许使用pnpm
100
100
"preinstall" : " npx only-allow pnpm" ,
101
101
// husky的安装
Original file line number Diff line number Diff line change 49
49
"dev:play" : " pnpm -F @vben/playground run dev" ,
50
50
"format" : " vsh lint --format" ,
51
51
"lint" : " vsh lint" ,
52
- "postinstall" : " turbo run stub" ,
52
+ "postinstall" : " pnpm -r run stub --if-present " ,
53
53
"preinstall" : " npx only-allow pnpm" ,
54
54
"prepare" : " is-ci || husky" ,
55
55
"preview" : " turbo-run preview" ,
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ export async function run(options: RunOptions) {
46
46
process . exit ( 1 ) ;
47
47
}
48
48
49
+ process . env . VITE_CJS_IGNORE_WARNING = '1' ;
49
50
execaCommand ( `pnpm --filter=${ selectPkg } run ${ command } ` , {
50
51
stdio : 'inherit' ,
51
52
} ) ;
Original file line number Diff line number Diff line change 30
30
"dependsOn" : [" ^build" ],
31
31
"outputs" : [" .nitro/**" , " .output/**" ]
32
32
},
33
- "stub" : {
34
- "cache" : false
35
- },
36
33
"test:e2e" : {},
37
34
"dev" : {
38
35
"dependsOn" : [],
You can’t perform that action at this time.
0 commit comments