Skip to content

Commit 07471e3

Browse files
committed
added post install script shebang
1 parent 812b63b commit 07471e3

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

script.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
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

68
const 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)

0 commit comments

Comments
 (0)