Monkey-patch fs with graceful-fs before anything else runs

Reviewed By: matryoshcow, kentaromiura

Differential Revision: D4020645

fbshipit-source-id: a7985109476b78b588c3e2a75ae6f25ea8f09237
This commit is contained in:
David Aurelio
2016-10-14 11:11:35 -07:00
committed by Facebook Github Bot
parent 46a3bea350
commit d26af5811d
3 changed files with 12 additions and 23 deletions

View File

@@ -8,6 +8,9 @@
*/
'use strict';
// gracefulify() has to be called before anything else runs
require('graceful-fs').gracefulify(require('fs'));
// This file must be able to run in node 0.12 without babel so we can show that
// it is not supported. This is why the rest of the cli code is in `cliEntry.js`.
require('./server/checkNodeVersion')();
@@ -15,7 +18,7 @@ require('./server/checkNodeVersion')();
require('../packager/babelRegisterOnly')([
/private-cli\/src/,
/local-cli/,
/react-packager\/src/
/react-packager\/src/,
]);
var cliEntry = require('./cliEntry');