We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb0cbfb commit 502f658Copy full SHA for 502f658
update.js
@@ -61,7 +61,13 @@ module.exports = function update () {
61
const doCommit = allPackageFiles.reduce((didChange, pkgJson) => {
62
const lockfilePath = path.dirname(pkgJson)
63
const previousDir = process.cwd()
64
- process.chdir(lockfilePath)
+
65
+ try {
66
+ process.chdir(lockfilePath)
67
+ } catch (error) {
68
+ console.error(`can't chdir into lockfile path ${lockfilePath}`)
69
+ return
70
+ }
71
72
const pkg = relative('./package.json')
73
0 commit comments