Skip to content
This repository was archived by the owner on Jan 30, 2018. It is now read-only.

Commit 663b03b

Browse files
committed
fix: use process to get cwd
1 parent 843a675 commit 663b03b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var auditPackage = require('nsp/lib/auditPackage.js')
33

44
module.exports = function (pluginConfig, packagePath, cb) {
55
if (!packagePath) {
6-
packagePath = './package.json'
6+
packagePath = process.cwd() + '/package.json'
77
}
88

99
auditPackage(packagePath, (err, results) => {

0 commit comments

Comments
 (0)