Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
nodejs/node-v0.x-archive#5401 (comment)
  • Loading branch information
peterjmag committed Oct 2, 2014
1 parent 03a3b97 commit 087f01f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "*",
Expand Down
2 changes: 1 addition & 1 deletion parker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 087f01f

Please sign in to comment.