Skip to content

Commit dbf7490

Browse files
committed
...and always run the tests before checking in
1 parent d3f2ad9 commit dbf7490

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/odd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ var opts = {
4444
if (argv._.length === 0) {
4545
optionalDevDependency.readPackage((er, pkg) => {
4646
if (er) {
47-
console.error(e.message)
47+
console.error(er.message)
4848
process.exit(1)
4949
}
5050
argv._ = pkg.optionalDevDependencies

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ module.exports.saveAll = function (list, options, cb) {
105105
}
106106
dep.getVersion(options, next)
107107
}, function () {
108-
fs.writeFile(filename, JSON.stringify(pkg, null, 2), cb)
108+
fs.writeFile(Dependency.findNodeModules('package.json'), JSON.stringify(pkg, null, 2), cb)
109109
})
110110
})
111111
}

0 commit comments

Comments
 (0)