Update tooling deps: npm/json and devcontainer lock#4534
Conversation
Install latest npm and json in _scripts and add the devcontainer feature lockfile. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR aims to make local tooling/devcontainer setup more reproducible by capturing dependency/feature resolution state in-repo (devcontainer feature lock + _scripts npm deps/lock).
Changes:
- Added
.devcontainer/devcontainer-lock.jsonto pin resolved devcontainer feature versions/digests. - Updated
_scripts/package.jsonto includejsonandnpmas devDependencies. - Added
_scripts/package-lock.jsonto lock_scriptsdependency resolution.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| .devcontainer/devcontainer-lock.json | New lockfile pinning devcontainer feature resolutions. |
| _scripts/package.json | Adds _scripts devDependencies (json, npm). |
| _scripts/package-lock.json | New lockfile capturing _scripts dependency graph. |
Files not reviewed (1)
- _scripts/package-lock.json: Generated file
Format _scripts/package.json and drop unused npm devDependency, keeping json only. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
@MasterTLF please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
Analysis
The session updated local runtime/tooling versions (Node via nvm, npm/json via npm), but repository-tracked tooling deps in
_scriptsstill reflected older state and had no lockfile.To make the tooling update reproducible in this repo, dependency versions and lock data need to be captured in source control.
Fix
Added
jsonas a devDependency in_scripts/package.json, generated_scripts/package-lock.json, and added.devcontainer/devcontainer-lock.jsonto pin devcontainer feature resolutions.Copilot Checklist
I successfully ran these commands at the end of my session, and they completed without error: