Skip to content

Commit 9bee5e3

Browse files
committedOct 10, 2017
resolve #7 add init script
1 parent e7ab6df commit 9bee5e3

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env node
22
"use strict";
33

4-
require('../index.js')();
4+
require('../index')();
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
'use strict'
2+
3+
// Makes the script crash on unhandled rejections instead of silently
4+
// ignoring them. In the future, promise rejections that are not handled will
5+
// terminate the Node.js process with a non-zero exit code.
6+
process.on('unhandledRejection', err => {
7+
throw err;
8+
});
9+
10+
module.exports = require('react-scripts/scripts/init');

0 commit comments

Comments
 (0)