File tree Expand file tree Collapse file tree 4 files changed +20
-4
lines changed Expand file tree Collapse file tree 4 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 2222 id : build
2323 run : |
2424 bun install
25+ bun run pack:i
2526 bun run build
2627 mkdir ${{ env.PLUGIN_NAME }}
2728 cp main.js manifest.json styles.css ${{ env.PLUGIN_NAME }}
Original file line number Diff line number Diff line change @@ -3,14 +3,10 @@ import config from './config.json';
33
44async function installScript ( ) {
55 for ( const corePackage of config . corePackages ) {
6- await $ ( 'rm -rf "node_modules"' , `packages/${ corePackage } ` , Verboseness . VERBOSE ) ;
7- await $ ( 'rm "bun.lockb"' , `packages/${ corePackage } ` , Verboseness . VERBOSE ) ;
86 await $ ( 'bun i' , `packages/${ corePackage } ` , Verboseness . VERBOSE ) ;
97 }
108
119 for ( const nonCorePackage of config . packages ) {
12- await $ ( 'rm -rf "node_modules"' , `packages/${ nonCorePackage } ` , Verboseness . VERBOSE ) ;
13- await $ ( 'rm "bun.lockb"' , `packages/${ nonCorePackage } ` , Verboseness . VERBOSE ) ;
1410 await $ ( 'bun i' , `packages/${ nonCorePackage } ` , Verboseness . NORMAL ) ;
1511 }
1612}
Original file line number Diff line number Diff line change 1+ import { $ , Verboseness } from 'utils/shellUtils' ;
2+ import config from './config.json' ;
3+
4+ async function installScriptClean ( ) {
5+ for ( const corePackage of config . corePackages ) {
6+ await $ ( 'rm -rf "node_modules"' , `packages/${ corePackage } ` , Verboseness . VERBOSE ) ;
7+ await $ ( 'rm "bun.lockb"' , `packages/${ corePackage } ` , Verboseness . VERBOSE ) ;
8+ await $ ( 'bun i' , `packages/${ corePackage } ` , Verboseness . VERBOSE ) ;
9+ }
10+
11+ for ( const nonCorePackage of config . packages ) {
12+ await $ ( 'rm -rf "node_modules"' , `packages/${ nonCorePackage } ` , Verboseness . VERBOSE ) ;
13+ await $ ( 'rm "bun.lockb"' , `packages/${ nonCorePackage } ` , Verboseness . VERBOSE ) ;
14+ await $ ( 'bun i' , `packages/${ nonCorePackage } ` , Verboseness . NORMAL ) ;
15+ }
16+ }
17+
18+ await installScriptClean ( ) ;
Original file line number Diff line number Diff line change 2020 "check" : " bun run format:check && bun run tsc && bun run svelte-check && bun run lint && bun run test" ,
2121 "check:fix" : " bun run format && bun run tsc && bun run svelte-check && bun run lint:fix && bun run test" ,
2222 "pack:i" : " bun run automation/installScript.ts" ,
23+ "pack:i:clean" : " bun run automation/installScriptClean.ts" ,
2324 "release" : " bun run automation/release.ts" ,
2425 "serve-publish" : " bun --watch automation/publishServer.ts" ,
2526 "stats" : " bun run automation/stats.ts"
You can’t perform that action at this time.
0 commit comments