-
Notifications
You must be signed in to change notification settings - Fork 37
Feat/deterministic npm installs #175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,5 +16,5 @@ jobs: | |
| with: | ||
| node-version: 24 | ||
|
|
||
| - run: npm i | ||
| - run: npm ci | ||
| - run: npm test | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,82 +29,82 @@ | |
| }, | ||
| "devDependencies": { | ||
| "@types/babel__core": "7.1.2", | ||
| "@types/babel__generator": "^7.6.2", | ||
| "@types/babel__template": "^7.0.3", | ||
| "@types/babel__traverse": "^7.0.15", | ||
| "@types/chalk": "^2.2.0", | ||
| "@types/babel__generator": "7.6.2", | ||
| "@types/babel__template": "7.0.3", | ||
| "@types/babel__traverse": "7.0.15", | ||
| "@types/chalk": "2.2.0", | ||
| "@types/estree": "0.0.44", | ||
| "@types/jest": "^30.0.0", | ||
| "@types/koa": "^2.0.49", | ||
| "@types/koa-router": "^7.0.42", | ||
| "@types/mkdirp": "^0.5.2", | ||
| "@types/node": "^20.19.40", | ||
| "@types/node-fetch": "^1.6.7", | ||
| "@types/jest": "30.0.0", | ||
| "@types/koa": "2.0.49", | ||
| "@types/koa-router": "7.0.42", | ||
| "@types/mkdirp": "0.5.2", | ||
| "@types/node": "20.19.40", | ||
| "@types/node-fetch": "1.6.9", | ||
| "@types/ora": "1.3.1", | ||
| "@types/readline-sync": "^1.4.2", | ||
| "@types/serialize-javascript": "^1.5.0", | ||
| "@types/tmp": "^0.0.33", | ||
| "@types/walk": "^2.3.0", | ||
| "@types/yargs": "^17.0.35", | ||
| "babel-core": "^7.0.0-bridge.0", | ||
| "babel-plugin-react-compiler": "^19.1.0-rc.2", | ||
| "husky": "^0.14.3", | ||
| "jest": "^30.4.2", | ||
| "lint-staged": "^17.0.4", | ||
| "prettier": "^1.19.1", | ||
| "ts-jest": "^29.4.9", | ||
| "ts-node": "^10.9.2", | ||
| "typescript": "^5.5.4" | ||
| "@types/readline-sync": "1.4.3", | ||
| "@types/serialize-javascript": "1.5.0", | ||
| "@types/tmp": "0.0.33", | ||
| "@types/walk": "2.3.0", | ||
| "@types/yargs": "17.0.35", | ||
| "babel-core": "7.0.0-bridge.0", | ||
| "babel-plugin-react-compiler": "19.1.0-rc.2", | ||
| "husky": "0.14.3", | ||
| "jest": "30.4.2", | ||
| "lint-staged": "17.0.4", | ||
| "prettier": "1.19.1", | ||
| "ts-jest": "29.4.9", | ||
| "ts-node": "10.9.2", | ||
| "typescript": "5.5.4" | ||
| }, | ||
| "dependencies": { | ||
| "@babel/core": "^7.29.0", | ||
| "@babel/generator": "^7.29.1", | ||
| "@babel/plugin-proposal-decorators": "^7.29.0", | ||
| "@babel/plugin-proposal-export-default-from": "^7.27.1", | ||
| "@babel/preset-env": "^7.29.5", | ||
| "@babel/preset-flow": "^7.27.1", | ||
| "@babel/preset-react": "^7.28.5", | ||
| "@babel/preset-typescript": "^7.28.5", | ||
| "@babel/template": "^7.28.6", | ||
| "@babel/core": "7.29.0", | ||
| "@babel/generator": "7.29.1", | ||
| "@babel/plugin-proposal-decorators": "7.29.0", | ||
| "@babel/plugin-proposal-export-default-from": "7.27.1", | ||
| "@babel/preset-env": "7.29.5", | ||
| "@babel/preset-flow": "7.27.1", | ||
| "@babel/preset-react": "7.28.5", | ||
| "@babel/preset-typescript": "7.28.5", | ||
| "@babel/template": "7.28.6", | ||
| "babel-plugin-ttag": "1.8.16", | ||
| "chalk": "^2.4.2", | ||
| "cross-spawn": "^7.0.6", | ||
| "estree-walker": "^2.0.1", | ||
| "gettext-parser": "^6.0.0", | ||
| "chalk": "2.4.2", | ||
| "cross-spawn": "7.0.6", | ||
| "estree-walker": "2.0.1", | ||
| "gettext-parser": "6.0.0", | ||
|
Comment on lines
+60
to
+73
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pinning regular dependencies doesn't look right to me.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The pinning helps reduce supply-chain attacks that use the npm version bumping when running With the |
||
| "glob": "13.0.0", | ||
| "hunspell-spellchecker": "^1.0.2", | ||
| "ignore": "^5.1.8", | ||
| "is-glob": "^4.0.3", | ||
| "koa": "^2.16.4", | ||
| "koa-body": "^7.0.1", | ||
| "koa-router": "^14.0.0", | ||
| "mkdirp": "^0.5.1", | ||
| "node-fetch": "^2.7.0", | ||
| "open": "^6.4.0", | ||
| "hunspell-spellchecker": "1.0.2", | ||
| "ignore": "5.1.8", | ||
| "is-glob": "4.0.3", | ||
| "koa": "2.16.4", | ||
| "koa-body": "7.0.1", | ||
| "koa-router": "14.0.0", | ||
| "mkdirp": "0.5.5", | ||
| "node-fetch": "2.7.0", | ||
| "open": "6.4.0", | ||
| "ora": "1.3.0", | ||
| "plural-forms": "0.5.3", | ||
| "readline-sync": "^1.4.7", | ||
| "serialize-javascript": "^7.0.5", | ||
| "svelte": "^5.55.5", | ||
| "tmp": "^0.2.5", | ||
| "vue-sfc-parser": "^0.1.2", | ||
| "readline-sync": "1.4.9", | ||
|
aperkaz marked this conversation as resolved.
|
||
| "serialize-javascript": "7.0.5", | ||
| "svelte": "5.55.5", | ||
| "tmp": "0.2.5", | ||
| "vue-sfc-parser": "0.1.2", | ||
| "walk": "2.3.9", | ||
| "yargs": "^16.2.0" | ||
| "yargs": "16.2.0" | ||
| }, | ||
| "overrides": { | ||
| "@babel/runtime": "^7.29.1", | ||
| "ajv": "^6.15.0", | ||
| "brace-expansion": "^1.1.13", | ||
| "js-yaml": "^3.14.2", | ||
| "yaml": "^1.10.3" | ||
| "@babel/runtime": "7.29.2", | ||
| "ajv": "6.15.0", | ||
| "brace-expansion": "1.1.14", | ||
| "js-yaml": "3.14.2", | ||
| "yaml": "1.10.3" | ||
| }, | ||
| "jest": { | ||
| "snapshotFormat": { | ||
| "escapeString": true, | ||
| "printBasicPrototype": true | ||
| }, | ||
| "transform": { | ||
| "^.+\\.tsx?$": "ts-jest" | ||
| ".+\\.tsx?$": "ts-jest" | ||
|
aperkaz marked this conversation as resolved.
|
||
| }, | ||
| "testRegex": "(/tests/.*|(\\.|/)(test|spec))\\.(tsx?)$", | ||
| "testPathIgnorePatterns": [ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are dev dep dumps really needed? why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same reason as #175 (comment) 🙂