Browse Source

`fs-promise` already leverages `graceful-fs` (thanks @rase- for pointer)

master
Guillermo Rauch 9 years ago
parent
commit
5c3fd34160
  1. 3
      lib/get-files.js
  2. 5
      lib/graceful-fs.js
  3. 2
      lib/hash.js

3
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

5
lib/graceful-fs.js

@ -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.);

2
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.

Loading…
Cancel
Save