Skip to content

Commit

Permalink
resolve #7 add init script
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondsze committed Oct 10, 2017
1 parent e7ab6df commit 9bee5e3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/create-react-scripts/bin/create-react-scripts.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env node
"use strict";

require('../index.js')();
require('../index')();
10 changes: 10 additions & 0 deletions packages/create-react-scripts/scripts/init.js
Original file line number Diff line number Diff line change
@@ -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
// terminate the Node.js process with a non-zero exit code.
process.on('unhandledRejection', err => {
throw err;
});

module.exports = require('react-scripts/scripts/init');

0 comments on commit 9bee5e3

Please sign in to comment.