We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7ab6df commit 9bee5e3Copy full SHA for 9bee5e3
packages/create-react-scripts/bin/create-react-scripts.js
@@ -1,4 +1,4 @@
1
#!/usr/bin/env node
2
"use strict";
3
4
-require('../index.js')();
+require('../index')();
packages/create-react-scripts/scripts/init.js
@@ -0,0 +1,10 @@
+'use strict'
+
+// Makes the script crash on unhandled rejections instead of silently
+// 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