Skip to content

Commit 0810299

Browse files
committed
Remove save-exact from .npmrc and add save
Since we can no longer use Dependabot due to CFS, we just have to update manually (with `--save`, but automatic). Which means we need `^` semver so `npm update` does what we expect (which is to update to the latest minor version). Except for the VS Code types, those use `~` so we only get patch updates. This is because it must match our engine version of VS Code. Also just omit the resolved registry from the lockfile (since the replace option didn't really work as expected)
1 parent 83640dd commit 0810299

File tree

3 files changed

+75
-75
lines changed

3 files changed

+75
-75
lines changed

.npmrc

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
; We use Dependabot to update our packages, so we want to add without a prefix
2-
save-exact=true
3-
; We download from a private feed during the release process
1+
; We generally want to save install/update commands
2+
save=true
3+
; We use a public Azure Artifacts mirror
44
registry=https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/npm/registry/
55
always-auth=true
6-
; We want the lockfile to reference the default registry
7-
replace-registry-host=npmjs
6+
; But we don't want references to it in the lockfile
7+
omit-lockfile-registry-resolved=true

package-lock.json

+35-35
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+35-35
Original file line numberDiff line numberDiff line change
@@ -73,43 +73,43 @@
7373
"onWalkthrough:PowerShell"
7474
],
7575
"dependencies": {
76-
"@vscode/extension-telemetry": "0.9.6",
77-
"node-fetch": "2.7.0",
78-
"semver": "7.6.0",
79-
"untildify": "4.0.0",
80-
"uuid": "9.0.1",
81-
"vscode-languageclient": "9.0.1",
82-
"vscode-languageserver-protocol": "3.17.5"
76+
"@vscode/extension-telemetry": "^0.9.6",
77+
"node-fetch": "^2.7.0",
78+
"semver": "^7.6.0",
79+
"untildify": "^4.0.0",
80+
"uuid": "^9.0.1",
81+
"vscode-languageclient": "^9.0.1",
82+
"vscode-languageserver-protocol": "^3.17.5"
8383
},
8484
"devDependencies": {
85-
"@types/mocha": "10.0.6",
86-
"@types/mock-fs": "4.13.4",
87-
"@types/node": "18.19.3",
88-
"@types/node-fetch": "2.6.4",
89-
"@types/rewire": "2.5.30",
90-
"@types/semver": "7.5.8",
91-
"@types/sinon": "17.0.3",
92-
"@types/ungap__structured-clone": "1.2.0",
93-
"@types/uuid": "9.0.8",
94-
"@types/vscode": "1.82.0",
95-
"@typescript-eslint/eslint-plugin": "7.6.0",
96-
"@typescript-eslint/parser": "7.6.0",
97-
"@ungap/structured-clone": "1.2.0",
98-
"@vscode/debugprotocol": "1.65.0",
99-
"@vscode/test-electron": "2.3.9",
100-
"@vscode/vsce": "2.24.0",
101-
"esbuild": "0.20.2",
102-
"eslint": "8.57.0",
103-
"eslint-plugin-header": "3.1.1",
104-
"glob": "10.3.12",
105-
"mocha": "10.4.0",
106-
"mocha-explorer-launcher-scripts": "0.4.0",
107-
"mocha-multi-reporters": "1.5.1",
108-
"mock-fs": "5.2.0",
109-
"rewire": "7.0.0",
110-
"sinon": "17.0.1",
111-
"source-map-support": "0.5.21",
112-
"typescript": "5.4.4"
85+
"@types/mocha": "^10.0.6",
86+
"@types/mock-fs": "^4.13.4",
87+
"@types/node": "^18.19.3",
88+
"@types/node-fetch": "^2.6.4",
89+
"@types/rewire": "^2.5.30",
90+
"@types/semver": "^7.5.8",
91+
"@types/sinon": "^17.0.3",
92+
"@types/ungap__structured-clone": "^1.2.0",
93+
"@types/uuid": "^9.0.8",
94+
"@types/vscode": "~1.82.0",
95+
"@typescript-eslint/eslint-plugin": "^7.6.0",
96+
"@typescript-eslint/parser": "^7.6.0",
97+
"@ungap/structured-clone": "^1.2.0",
98+
"@vscode/debugprotocol": "^1.65.0",
99+
"@vscode/test-electron": "^2.3.9",
100+
"@vscode/vsce": "^2.24.0",
101+
"esbuild": "^0.20.2",
102+
"eslint": "^8.57.0",
103+
"eslint-plugin-header": "^3.1.1",
104+
"glob": "^10.3.12",
105+
"mocha": "^10.4.0",
106+
"mocha-explorer-launcher-scripts": "^0.4.0",
107+
"mocha-multi-reporters": "^1.5.1",
108+
"mock-fs": "^5.2.0",
109+
"rewire": "^7.0.0",
110+
"sinon": "^17.0.1",
111+
"source-map-support": "^0.5.21",
112+
"typescript": "^5.4.4"
113113
},
114114
"extensionDependencies": [
115115
"vscode.powershell"

0 commit comments

Comments
 (0)