From c82f8c997fc821c239b69ebb022a548adcdcb060 Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Thu, 12 Feb 2015 12:27:48 +0100 Subject: [PATCH] Use fs-promise. --- package.json | 1 + src/index.js | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 6499032cd..9355d83d1 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/index.js b/src/index.js index 742c47309..7983fc89d 100644 --- a/src/index.js +++ b/src/index.js @@ -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); }