Skip to content

Commit 8f9ff79

Browse files
author
MaxGenash
committed
fix(stencil-release): (STRF-6905) add updating version in package-lock.json
1 parent bbda39a commit 8f9ff79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/release/release.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ function checkGitData(gitData) {
188188
}
189189

190190
async function commitAndPush(version, remote) {
191-
await git.add(['config.json', 'package.json', 'CHANGELOG.md']);
191+
await git.add(['config.json', 'package.json', 'package-lock.json', 'CHANGELOG.md']);
192192
const summary = await git.commit(`Releasing ${version}`);
193193

194194
console.log(`Pushing Changes to ${remote.name}...`);
@@ -204,6 +204,7 @@ async function doRelease(options) {
204204

205205
await bumpJsonFileVersion(themeConfigManager.configPath, options.version);
206206
await bumpJsonFileVersion(path.join(THEME_PATH, 'package.json'), options.version);
207+
await bumpJsonFileVersion(path.join(THEME_PATH, 'package-lock.json'), options.version);
207208

208209
const bundlePath = await bundleTheme();
209210

0 commit comments

Comments
 (0)