Skip to content

Commit

Permalink
fix(preprocessor): use graceful-fs to prevent EACCESS errors
Browse files Browse the repository at this point in the history
Closes #566
  • Loading branch information
iammerrick authored and vojtajina committed Jun 16, 2013
1 parent bbd5eb8 commit 279bcab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/preprocessor.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var fs = require('fs');
var fs = require('graceful-fs');
var crypto = require('crypto');
var mm = require('minimatch');

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@
"pause": "0.0.1",
"mime": "~1.2",
"log4js": "~0.6.3",
"useragent": "~2.0.4"
"useragent": "~2.0.4",
"graceful-fs": "~1.2.1"
},
"peerDependencies": {
"karma-jasmine": "*",
Expand Down
2 changes: 1 addition & 1 deletion test/unit/preprocessor.spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe 'preprocessor', ->
'a.js': mocks.fs.file 0, 'content'

mocks_ =
fs: mockFs
'graceful-fs': mockFs
minimatch: require 'minimatch'

m = mocks.loadFile __dirname + '/../../lib/preprocessor.js', mocks_
Expand Down

0 comments on commit 279bcab

Please sign in to comment.