@pnpm/config
Advanced tools
Comparing version 9.0.0-alpha.2 to 9.0.0
# @pnpm/config | ||
## 9.0.0 | ||
### Major Changes | ||
- e11019b89: Deprecate the resolution strategy setting. The fewer dependencies strategy is used always. | ||
- 802d145fc: Remove `independent-leaves` support. | ||
- 45fdcfde2: Locking is removed. | ||
### Minor Changes | ||
- 242cf8737: The `link-workspace-packages` setting may be set to `deep`. When using `deep`, | ||
workspace packages are linked into subdependencies, not only to direct dependencies of projects. | ||
### Patch Changes | ||
- Updated dependencies [b5f66c0f2] | ||
- Updated dependencies [ca9f50844] | ||
- Updated dependencies [da091c711] | ||
- Updated dependencies [4f5801b1c] | ||
- @pnpm/constants@4.0.0 | ||
- @pnpm/types@6.0.0 | ||
- @pnpm/error@1.2.1 | ||
## 9.0.0-alpha.2 | ||
@@ -4,0 +27,0 @@ |
@@ -86,3 +86,2 @@ import { ProjectManifest, Registries } from '@pnpm/types'; | ||
pnpmfile: string; | ||
independentLeaves?: boolean; | ||
packageImportMethod?: 'auto' | 'hardlink' | 'copy' | 'clone'; | ||
@@ -102,3 +101,2 @@ hoistPattern?: string[]; | ||
useLockfile: boolean; | ||
resolutionStrategy: 'fast' | 'fewer-dependencies'; | ||
globalPnpmfile?: string; | ||
@@ -105,0 +103,0 @@ npmPath?: string; |
@@ -38,3 +38,2 @@ "use strict"; | ||
'ignore-workspace-root-check': Boolean, | ||
'independent-leaves': Boolean, | ||
'link-workspace-packages': [Boolean, 'deep'], | ||
@@ -58,3 +57,2 @@ 'lockfile': Boolean, | ||
'reporter': String, | ||
'resolution-strategy': ['fast', 'fewer-dependencies'], | ||
'save-peer': Boolean, | ||
@@ -130,3 +128,2 @@ 'save-workspace-protocol': Boolean, | ||
'registry': npmDefaults.registry, | ||
'resolution-strategy': 'fewer-dependencies', | ||
'save-peer': false, | ||
@@ -210,8 +207,2 @@ 'save-workspace-protocol': true, | ||
pnpmConfig.saveOptional = false; | ||
if (pnpmConfig.independentLeaves) { | ||
if (opts.cliOptions['independent-leaves']) { | ||
throw new error_1.default('CONFIG_CONFLICT_INDEPENDENT_LEAVES_WITH_GLOBAL', 'Configuration conflict. "independent-leaves" may not be used with "global"'); | ||
} | ||
pnpmConfig.independentLeaves = false; | ||
} | ||
if (pnpmConfig.hoistPattern && (pnpmConfig.hoistPattern.length > 1 || pnpmConfig.hoistPattern[0] !== '*')) { | ||
@@ -221,3 +212,2 @@ if (opts.cliOptions['hoist-pattern']) { | ||
} | ||
pnpmConfig.independentLeaves = false; | ||
} | ||
@@ -296,5 +286,2 @@ if (pnpmConfig.linkWorkspacePackages) { | ||
} | ||
else if (pnpmConfig.independentLeaves === true) { | ||
throw new error_1.default('CONFIG_CONFLICT_INDEPENDENT_LEAVES_AND_HOIST', '"independent-leaves=true" can only be used when hoisting is off, so "hoist=false"'); | ||
} | ||
if (typeof pnpmConfig['color'] === 'boolean') { | ||
@@ -301,0 +288,0 @@ switch (pnpmConfig['color']) { |
{ | ||
"name": "@pnpm/config", | ||
"version": "9.0.0-alpha.2", | ||
"version": "9.0.0", | ||
"description": "Gets configuration options for pnpm", | ||
@@ -34,5 +34,5 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@pnpm/constants": "4.0.0-alpha.1", | ||
"@pnpm/constants": "4.0.0", | ||
"@pnpm/error": "1.2.0", | ||
"@pnpm/types": "6.0.0-alpha.0", | ||
"@pnpm/types": "6.0.0", | ||
"@zkochan/npm-conf": "2.0.0", | ||
@@ -39,0 +39,0 @@ "camelcase": "6.0.0", |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
23709
467
+ Added@pnpm/constants@4.0.0(transitive)
+ Added@pnpm/types@6.0.0(transitive)
- Removed@pnpm/constants@4.0.0-alpha.1(transitive)
- Removed@pnpm/types@6.0.0-alpha.0(transitive)
Updated@pnpm/constants@4.0.0
Updated@pnpm/types@6.0.0