From 5c3fd34160e5e0f3a81d24f1f86fa5119a80f36b Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Fri, 26 Feb 2016 16:30:59 -0800 Subject: [PATCH] `fs-promise` already leverages `graceful-fs` (thanks @rase- for pointer) --- lib/get-files.js | 3 +-- lib/graceful-fs.js | 5 ----- lib/hash.js | 2 +- 3 files changed, 2 insertions(+), 8 deletions(-) delete mode 100644 lib/graceful-fs.js diff --git a/lib/get-files.js b/lib/get-files.js index eaca3c2..be138d7 100644 --- a/lib/get-files.js +++ b/lib/get-files.js @@ -1,10 +1,9 @@ -import { stat } from 'fs-promise'; -import { readdir, readFile } from './graceful-fs'; import { resolve } from 'path'; import flatten from 'arr-flatten'; import unique from 'array-unique'; import minimatch from 'minimatch'; import IGNORED from './ignored'; +import { stat, readdir, readFile } from 'fs-promise'; /** * Returns a list of files in the given diff --git a/lib/graceful-fs.js b/lib/graceful-fs.js deleted file mode 100644 index 8963d53..0000000 --- a/lib/graceful-fs.js +++ /dev/null @@ -1,5 +0,0 @@ -import fs from 'graceful-fs'; -import promisify from 'es6-promisify'; - -export const readdir = promisify(fs.readdir); -export const readdir = promisify(fs.); diff --git a/lib/hash.js b/lib/hash.js index dc4e89f..1249420 100644 --- a/lib/hash.js +++ b/lib/hash.js @@ -1,5 +1,5 @@ -import { readFile } from './graceful-fs'; import { createHash } from 'crypto'; +import { readFile } from 'fs-promise'; /** * Computes hashes for the contents of each file given.