Skip to content

chore(deps): pin npm dependencies to exact lockfile versions#583

Merged
tolzhabayev merged 2 commits into
mainfrom
chore/pin-npm-deps
May 20, 2026
Merged

chore(deps): pin npm dependencies to exact lockfile versions#583
tolzhabayev merged 2 commits into
mainfrom
chore/pin-npm-deps

Conversation

@tolzhabayev
Copy link
Copy Markdown
Contributor

Summary

  • Replace semver ranges in dependencies and devDependencies with the exact versions already resolved in package-lock.json. Direct deps will no longer drift across reinstalls.
  • Harden .npmrc with supply-chain settings:
    • allow-git=none (block git dependencies)
    • ignore-scripts=true (idempotent if already present)
    • min-release-age=3 (only install packages at least 3 days old)
  • peerDependencies and optionalDependencies are intentionally left as ranges. Specifiers using file:, link:, workspace:, git+, npm: (alias), http(s):, or * / latest are also untouched.

Generated by a script that reads package-lock.json and rewrites the direct dep ranges in every package.json to the resolved version. npm install after the change is a no-op (no resolved versions changed).

Test plan

  • CI green
  • npm install produces no further changes

Replace semver ranges in dependencies and devDependencies with the exact
versions already resolved by package-lock.json. Direct deps no longer
drift across reinstalls.

Also harden .npmrc with supply-chain settings:
- allow-git=none (block git dependencies)
- ignore-scripts=true (idempotent if already present)
- min-release-age=3 (only install packages at least 3 days old)
andresmgot
andresmgot previously approved these changes May 19, 2026
@github-project-automation github-project-automation Bot moved this from 📬 Triage to 🔬 In review in Grafana Catalog Team May 19, 2026
Follow-up to previous commit: include .npmrc supply-chain settings and
lockfile sync that were dropped by a driver bug (git add aborted when
yarn.lock was absent in an npm repo). No spec changes.
@tolzhabayev tolzhabayev merged commit cce23b6 into main May 20, 2026
9 checks passed
@tolzhabayev tolzhabayev deleted the chore/pin-npm-deps branch May 20, 2026 09:10
@github-project-automation github-project-automation Bot moved this from 🔬 In review to 🚀 Shipped in Grafana Catalog Team May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🚀 Shipped

Development

Successfully merging this pull request may close these issues.

3 participants