Skip to content

Commit

Permalink
fix(version): include the updated root package-lock.json file in commits
Browse files Browse the repository at this point in the history
  • Loading branch information
ghost91- committed May 6, 2022
1 parent 91dddb9 commit d6dbc9a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/version/src/version-command.ts
Expand Up @@ -600,7 +600,7 @@ export class VersionCommand extends Command {
})
);

chain = chain.then(() => {
chain = chain.then(() =>
// update modern lockfile (version 2 or higher) when exist in the project root
loadPackageLockFileWhenExists(rootPath)
.then(lockFileResponse => {
Expand All @@ -611,15 +611,15 @@ export class VersionCommand extends Command {
}

// save the lockfile, only once, after all package versions were updated
saveUpdatedLockJsonFile(lockFileResponse.path, lockFileResponse.json)
return saveUpdatedLockJsonFile(lockFileResponse.path, lockFileResponse.json)
.then((lockfilePath) => {
if (lockfilePath) {
changedFiles.add(lockfilePath);
}
});
}
});
});
})
);

if (!independentVersions) {
this.project.version = this.globalVersion;
Expand Down

0 comments on commit d6dbc9a

Please sign in to comment.