File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 1
- const fs = require ( 'fs' ) ;
2
- const path = require ( 'path' ) ;
1
+ #!/usr/bin/env node
3
2
4
- const projectFilesToDelete = [ '.flowconfig' , 'App.js' , '__tests__/App-test.js' ] ;
3
+ const fs = require ( 'fs' )
4
+ const path = require ( 'path' )
5
+
6
+ const projectFilesToDelete = [ '.flowconfig' , 'App.js' , '__tests__/App-test.js' ]
5
7
6
8
const deleteFile = filePath => {
7
9
if ( ! fs . existsSync ( filePath ) ) {
8
- return ;
10
+ return
9
11
}
10
12
11
- fs . unlinkSync ( filePath ) ;
12
- } ;
13
+ fs . unlinkSync ( filePath )
14
+ }
13
15
14
- const projectPath = path . join ( __dirname , '..' , '..' ) ;
15
- const deleteProjectFile = fileName => deleteFile ( path . join ( projectPath , fileName ) ) ;
16
+ const projectPath = path . join ( __dirname , '..' , '..' )
17
+ const deleteProjectFile = fileName => deleteFile ( path . join ( projectPath , fileName ) )
16
18
17
- projectFilesToDelete . forEach ( deleteProjectFile ) ;
19
+ projectFilesToDelete . forEach ( deleteProjectFile )
You can’t perform that action at this time.
0 commit comments