Use fs-promise.

This commit is contained in:
Julien Fontanet
2015-02-12 12:27:48 +01:00
parent f06840f4b8
commit c82f8c997f
2 changed files with 2 additions and 5 deletions

View File

@@ -37,6 +37,7 @@
"exec-promise": "^0.5.1",
"extendable": "~0.1.0",
"fibers": "~1.0.5",
"fs-promise": "^0.3.1",
"hashy": "~0.4.2",
"http-server-plus": "^0.5.0",
"js-yaml": "^3.2.5",

View File

@@ -9,7 +9,7 @@ import bind from 'lodash.bind';
import chalk from 'chalk';
import createConnectApp from 'connect';
import eventToPromise from 'event-to-promise';
import fs from 'fs';
import {readFile} from 'fs-promise';
import forEach from 'lodash.foreach';
import has from 'lodash.has';
import isArray from 'lodash.isarray';
@@ -26,10 +26,6 @@ import {fileExists, wrap} from './utils';
//====================================================================
let readFile = Bluebird.promisify(fs.readFile);
//====================================================================
let info = (...args) => {
console.info('[Info]', ...args);
}