@npmcli/config 8.3.3 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +3 -3
- package/package.json +14 -13
package/lib/index.js
CHANGED
|
@@ -669,12 +669,12 @@ class Config {
|
|
|
669
669
|
}
|
|
670
670
|
|
|
671
671
|
if (this.localPrefix && hasPackageJson) {
|
|
672
|
-
const
|
|
672
|
+
const pkgJson = require('@npmcli/package-json')
|
|
673
673
|
// if we already set localPrefix but this dir has a package.json
|
|
674
674
|
// then we need to see if `p` is a workspace root by reading its package.json
|
|
675
675
|
// however, if reading it fails then we should just move on
|
|
676
|
-
const pkg = await
|
|
677
|
-
if (!pkg) {
|
|
676
|
+
const { content: pkg } = await pkgJson.normalize(p).catch(() => ({ content: {} }))
|
|
677
|
+
if (!pkg?.workspaces) {
|
|
678
678
|
continue
|
|
679
679
|
}
|
|
680
680
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@npmcli/config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"bin/",
|
|
6
6
|
"lib/"
|
|
@@ -17,11 +17,12 @@
|
|
|
17
17
|
"scripts": {
|
|
18
18
|
"test": "tap",
|
|
19
19
|
"snap": "tap",
|
|
20
|
-
"lint": "eslint
|
|
20
|
+
"lint": "npm run eslint",
|
|
21
21
|
"postlint": "template-oss-check",
|
|
22
|
-
"lintfix": "npm run
|
|
22
|
+
"lintfix": "npm run eslint -- --fix",
|
|
23
23
|
"posttest": "npm run lint",
|
|
24
|
-
"template-oss-apply": "template-oss-apply --force"
|
|
24
|
+
"template-oss-apply": "template-oss-apply --force",
|
|
25
|
+
"eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""
|
|
25
26
|
},
|
|
26
27
|
"tap": {
|
|
27
28
|
"nyc-arg": [
|
|
@@ -30,27 +31,27 @@
|
|
|
30
31
|
]
|
|
31
32
|
},
|
|
32
33
|
"devDependencies": {
|
|
33
|
-
"@npmcli/eslint-config": "^
|
|
34
|
+
"@npmcli/eslint-config": "^5.0.1",
|
|
34
35
|
"@npmcli/mock-globals": "^1.0.0",
|
|
35
|
-
"@npmcli/template-oss": "4.
|
|
36
|
+
"@npmcli/template-oss": "4.23.3",
|
|
36
37
|
"tap": "^16.3.8"
|
|
37
38
|
},
|
|
38
39
|
"dependencies": {
|
|
39
|
-
"@npmcli/map-workspaces": "^
|
|
40
|
+
"@npmcli/map-workspaces": "^4.0.1",
|
|
41
|
+
"@npmcli/package-json": "^6.0.1",
|
|
40
42
|
"ci-info": "^4.0.0",
|
|
41
|
-
"ini": "^
|
|
42
|
-
"nopt": "^
|
|
43
|
-
"proc-log": "^
|
|
44
|
-
"read-package-json-fast": "^3.0.2",
|
|
43
|
+
"ini": "^5.0.0",
|
|
44
|
+
"nopt": "^8.0.0",
|
|
45
|
+
"proc-log": "^5.0.0",
|
|
45
46
|
"semver": "^7.3.5",
|
|
46
47
|
"walk-up-path": "^3.0.1"
|
|
47
48
|
},
|
|
48
49
|
"engines": {
|
|
49
|
-
"node": "^
|
|
50
|
+
"node": "^18.17.0 || >=20.5.0"
|
|
50
51
|
},
|
|
51
52
|
"templateOSS": {
|
|
52
53
|
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
|
53
|
-
"version": "4.
|
|
54
|
+
"version": "4.23.3",
|
|
54
55
|
"content": "../../scripts/template-oss/index.js"
|
|
55
56
|
}
|
|
56
57
|
}
|