Skip to content

Commit

Permalink
actually depend on graceful-fs
Browse files Browse the repository at this point in the history
Since graceful-fs doesn't monkey-patch the builtin, there's no need to make
it optional. Also, it's currently being pulled in all the time anyway, so why
not just depend on it normally?
  • Loading branch information
isaacs committed Aug 29, 2014
1 parent 3c6ae74 commit f73eb42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
6 changes: 1 addition & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@
module.exports = cmdShim
cmdShim.ifExists = cmdShimIfExists

try {
var fs = require("graceful-fs")
} catch (e) {
var fs = require("fs")
}
var fs = require("graceful-fs")

var mkdir = require("mkdirp")
, path = require("path")
Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
"url": "https://github.com/ForbesLindesay/cmd-shim.git"
},
"license": "BSD",
"optionalDependencies": {
"graceful-fs": "2"
},
"dependencies": {
"graceful-fs": "^3.0.2",
"mkdirp": "~0.5.0"
Expand All @@ -21,4 +18,4 @@
"tap": "~0.4.11",
"rimraf": "~2.2.8"
}
}
}

0 comments on commit f73eb42

Please sign in to comment.