From 087f01f50a37c6f8131451986051ed381e51fcba Mon Sep 17 00:00:00 2001 From: Peter Magenheimer Date: Thu, 2 Oct 2014 15:33:46 +0200 Subject: [PATCH] Fix katiefenn/parker#30. This uses https://www.npmjs.org/package/graceful-fs as a drop-in replacement for the fs module. This will of course have a minor performance impact, but it should make Parker more resilient when processing large numbers of stylesheets. See also: http://stackoverflow.com/a/15934766/349353 https://github.com/joyent/node/issues/5401#issuecomment-17399695 --- package.json | 3 ++- parker.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2976a79..6692759 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "underscore": "*", "cli-color": "*", "minimist": "0.0.7", - "async": "~0.2.10" + "async": "~0.2.10", + "graceful-fs": "~3.0.2" }, "devDependencies": { "chai": "*", diff --git a/parker.js b/parker.js index 48fa2fd..c4ee796 100755 --- a/parker.js +++ b/parker.js @@ -14,7 +14,7 @@ var _ = require('underscore'), metrics = require('./metrics/All'), formatters = require('./lib/Formatters'), argv = require('minimist')(process.argv.slice(2)), - fs = require('fs'), + fs = require('graceful-fs'), async = require('async'), path = require('path'), info = require('./lib/Info');