switched fast-fs to use fs for API calls

Summary:
When debugging graceful-fs I noticed that I don't get close() calls https://github.com/isaacs/node-graceful-fs/blob/master/graceful-fs.js#L37.
This is because fastfs uses fs returned from graceful-fs https://github.com/facebook/react-native/blob/master/packager/react-packager/src/node-haste/fastfs.js#L14 and graceful-fs returns close() of a clone object https://github.com/isaacs/node-graceful-fs/blob/master/graceful-fs.js#L27 that is not patched by graceful-fs yet.

Reviewed By: cpojer

Differential Revision: D4021446

fbshipit-source-id: 87e50ff779dfea13b8db2b97575bff0bfd7778eb
This commit is contained in:
Konstantin Raev 2016-10-14 07:35:49 -07:00 committed by Facebook Github Bot
parent 56ac2a45d7
commit 80cb5efbb6
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@
const denodeify = require('denodeify');
const {EventEmitter} = require('events');
const fs = require('graceful-fs');
const fs = require('fs');
const path = require('./fastpath');
const readFile = denodeify(fs.readFile);