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
32
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' ]
57
68const deleteFile = filePath => {
79 if ( ! fs . existsSync ( filePath ) ) {
8- return ;
10+ return
911 }
1012
11- fs . unlinkSync ( filePath ) ;
12- } ;
13+ fs . unlinkSync ( filePath )
14+ }
1315
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 ) )
1618
17- projectFilesToDelete . forEach ( deleteProjectFile ) ;
19+ projectFilesToDelete . forEach ( deleteProjectFile )
You can’t perform that action at this time.
0 commit comments