Skip to content

Commit fcd6219

Browse files
committed
fix: check for lock files in correct folder
1 parent daebf0b commit fcd6219

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/actions/install-update.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ let { destroyPath } = require('../lib')
88
module.exports = function hydrator (params, callback) {
99
let { action, env, file, installing, inventory, local, shell, timeout, update, verbose } = params
1010

11-
const root = parse(process.cwd()).root
11+
const prjRoot = process.cwd()
12+
const root = parse(prjRoot).root
1213
let cwd = dirname(file)
1314
if (!existsSync(cwd)) {
1415
cwd = join(root, dirname(file))
@@ -42,6 +43,7 @@ module.exports = function hydrator (params, callback) {
4243
})
4344
}
4445

46+
// let exists = file => existsSync(join(prjRoot, file))
4547
let exists = file => existsSync(join(cwd, file))
4648
let isJs = file.endsWith('package.json')
4749
let isPy = file.endsWith('requirements.txt')

0 commit comments

Comments
 (0)