File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed
Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 2929 },
3030 "scripts" : {
3131 "all" : " run-s clean lint build test" ,
32- "clean" : " rm -rf ./dist " ,
32+ "clean" : " bun ./scripts/clean.ts " ,
3333 "build" : " bun ./scripts/build.ts" ,
3434 "test" : " bun test --dots --coverage ./test/*.js" ,
3535 "lint" : " eslint ./src/diff3.mjs ./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+ ] ;
24+ for ( const f of folders ) {
25+ await $ `rm -rf ${ f } ` ;
26+ }
You can’t perform that action at this time.
0 commit comments