File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 1
1
import fs from "node:fs/promises" ;
2
2
3
+ const globPaths = [
4
+ "./script" ,
5
+ "./src/hydrate" ,
6
+ "./src/setup" ,
7
+ "./src/shared" ,
8
+ ".github/workflows/hydrate.yml" ,
9
+ ".github/workflows/setup.yml" ,
10
+ ] ;
11
+
3
12
export async function removeSetupScripts ( ) {
4
- await fs . rm ( "./script" , { force : true , recursive : true } ) ;
5
- await fs . rm ( "./src/hydrate" , { force : true , recursive : true } ) ;
6
- await fs . rm ( "./src/setup" , { force : true , recursive : true } ) ;
7
- await fs . rm ( "./src/shared" , { force : true , recursive : true } ) ;
8
- await fs . rm ( ".github/workflows/hydrate.yml" ) ;
9
- await fs . rm ( ".github/workflows/setup.yml" ) ;
13
+ for ( const globPath of globPaths ) {
14
+ await fs . rm ( globPath , { force : true , recursive : true } ) ;
15
+ }
10
16
}
You can’t perform that action at this time.
0 commit comments