feat: regenerate lockfile via npm i --package-lock-only in release skill#231
Merged
Conversation
Co-Authored-By: Claude <noreply@anthropic.com>
Replace sed-based package-lock.json version replacement with `npm i --package-lock-only` for both root and extensions/copilot, and add a mandatory git diff verification step to catch unexpected dependency changes after regeneration. Also syncs stale lockfile versions (1.122.0-coderm.0.26.0 -> 1.122.0-coderm.0.28.0) missed in recent releases due to the brittle sed approach being replaced. Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the brittle
sed-basedpackage-lock.jsonversion replacement in the release skill withnpm i --package-lock-only, and adds a mandatory diff verification step. Also syncs stale lockfile versions missed in recent releases.Changes
Release skill improvements (
.claude/skills/release/SKILL.md)sed-basedpackage-lock.json/extensions/copilot/package-lock.jsonversion string replacement withnpm i --package-lock-only(root &extensions/copilot/)git diffverification after lockfile regeneration to catch unexpected dependency changes (e.g. indirect dependency updates)sed-based lockfile editing (collision risk with other dependency version strings, integrity risk)package-lock.jsonrows to notenpm i --package-lock-onlyregenerationStale lockfile sync
package-lock.jsonandextensions/copilot/package-lock.jsonversions (1.122.0-coderm.0.26.0→1.122.0-coderm.0.28.0) that were missed in the last 2 releases (0.27.0, 0.28.0) due to the brittlesedapproachgit diffthat only version references changed (no unexpected dependency updates)Why
The previous
sedapproach replaces the version string globally, which:sed -i ''is BSD/macOS-only)0.26.0whilepackage.jsonadvanced to0.28.0)npm i --package-lock-onlyregenerates the lockfile safely without touchingnode_modules, and picks uppackage.json#versionchanges correctly.Verification
npm i --package-lock-onlyon root updates onlyversion(2 places)npm i --package-lock-onlyonextensions/copilot/updates onlyengines.vscode(1 place)