@npmcli/config
Advanced tools
Comparing version 8.3.3 to 8.3.4
@@ -672,8 +672,8 @@ // TODO: set the scope config from package.json or explicit cli config | ||
if (this.localPrefix && hasPackageJson) { | ||
const rpj = require('read-package-json-fast') | ||
const pkgJson = require('@npmcli/package-json') | ||
// if we already set localPrefix but this dir has a package.json | ||
// then we need to see if `p` is a workspace root by reading its package.json | ||
// however, if reading it fails then we should just move on | ||
const pkg = await rpj(resolve(p, 'package.json')).catch(() => false) | ||
if (!pkg) { | ||
const { content: pkg } = await pkgJson.normalize(p).catch(() => ({ content: {} })) | ||
if (!pkg?.workspaces) { | ||
continue | ||
@@ -680,0 +680,0 @@ } |
{ | ||
"name": "@npmcli/config", | ||
"version": "8.3.3", | ||
"version": "8.3.4", | ||
"files": [ | ||
@@ -40,2 +40,3 @@ "bin/", | ||
"@npmcli/map-workspaces": "^3.0.2", | ||
"@npmcli/package-json": "^5.1.1", | ||
"ci-info": "^4.0.0", | ||
@@ -45,3 +46,2 @@ "ini": "^4.1.2", | ||
"proc-log": "^4.2.0", | ||
"read-package-json-fast": "^3.0.2", | ||
"semver": "^7.3.5", | ||
@@ -48,0 +48,0 @@ "walk-up-path": "^3.0.1" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
133516
+ Added@npmcli/package-json@^5.1.1
+ Added@npmcli/git@5.0.8(transitive)
+ Added@npmcli/package-json@5.2.0(transitive)
+ Added@npmcli/promise-spawn@7.0.2(transitive)
+ Addederr-code@2.0.3(transitive)
+ Addedhosted-git-info@7.0.2(transitive)
+ Addedisexe@3.1.1(transitive)
+ Addednormalize-package-data@6.0.2(transitive)
+ Addednpm-install-checks@6.3.0(transitive)
+ Addednpm-package-arg@11.0.3(transitive)
+ Addednpm-pick-manifest@9.1.0(transitive)
+ Addedpromise-inflight@1.0.1(transitive)
+ Addedpromise-retry@2.0.1(transitive)
+ Addedretry@0.12.0(transitive)
+ Addedspdx-correct@3.2.0(transitive)
+ Addedspdx-exceptions@2.5.0(transitive)
+ Addedspdx-expression-parse@3.0.1(transitive)
+ Addedspdx-license-ids@3.0.20(transitive)
+ Addedvalidate-npm-package-license@3.0.4(transitive)
+ Addedvalidate-npm-package-name@5.0.1(transitive)
+ Addedwhich@4.0.0(transitive)
- Removedread-package-json-fast@^3.0.2