Skip to content

Commit

Permalink
package: update and pin npm packages since we're using internals
Browse files Browse the repository at this point in the history
  • Loading branch information
mpareja committed Nov 12, 2023
1 parent b902271 commit c1b4ba5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
14 changes: 7 additions & 7 deletions package.json
Expand Up @@ -33,9 +33,9 @@
"author": "Mario Pareja",
"license": "MIT",
"devDependencies": {
"@jest/expect": "^29.5.0",
"@jest/expect": "^29.7.0",
"opener": "^1.5.2",
"simple-git-hooks": "^2.8.1",
"simple-git-hooks": "^2.9.0",
"standard": "^17.1.0"
},
"repository": {
Expand All @@ -47,10 +47,10 @@
},
"homepage": "https://github.com/mpareja/depdebt#readme",
"dependencies": {
"@npmcli/config": "^6.2.0",
"npm": "^9.6.7",
"npm-pick-manifest": "^8.0.1",
"p-queue": "^7.3.4",
"pacote": "^15.2.0"
"@npmcli/config": "8.0.1",
"npm": "10.2.3",
"npm-pick-manifest": "^9.0.0",
"p-queue": "^7.4.1",
"pacote": "^17.0.4"
}
}
3 changes: 1 addition & 2 deletions registry.js
Expand Up @@ -14,8 +14,7 @@ export class Registry {
async loadNpmConfig () {
// much of this is tediously recreated from staring at `npm` source code
const npmPath = path.dirname(require.resolve('npm'))
const utilsPath = path.resolve(npmPath, 'lib', 'utils', 'config', 'index.js')
const { definitions, flatten, shorthands } = require(utilsPath)
const { definitions, flatten, shorthands } = require('@npmcli/config/lib/definitions')

const config = new Config({
npmPath,
Expand Down

0 comments on commit c1b4ba5

Please sign in to comment.