File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed
Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change 2929 "scripts" : {
3030 "all" : " run-s clean lint build test" ,
3131 "build" : " bun ./scripts/build.ts" ,
32- "clean" : " rm -rf ./dist ./scratch " ,
32+ "clean" : " bun ./scripts/clean.ts " ,
3333 "lint" : " eslint ./src/osm-auth.mjs ./test/*.js" ,
3434 "start" : " bun ./scripts/server.ts" ,
3535 "test" : " bun test --dots --coverage ./test/*.js"
Original file line number Diff line number Diff line change 1+ import { $ , Glob } from 'bun' ;
2+
3+ // Remove these files if found anywhere
4+ const files = [
5+ '.DS_Store' ,
6+ 'npm-debug.log' ,
7+ 'package-lock.json' ,
8+ 'pnpm-lock.yaml' ,
9+ 'yarn.lock'
10+ ] ;
11+
12+ for ( const f of files ) {
13+ const glob = new Glob ( `**/${ f } ` ) ;
14+ for await ( const file of glob . scan ( { dot : true } ) ) {
15+ await $ `rm -f ${ file } ` ;
16+ }
17+ }
18+
19+ // Remove these specific folders
20+ const folders = [
21+ './coverage' ,
22+ './dist' ,
23+ './scratch' ,
24+ ] ;
25+ for ( const f of folders ) {
26+ await $ `rm -rf ${ f } ` ;
27+ }
You can’t perform that action at this time.
0 commit comments