@pnpm/config
Advanced tools
Comparing version 3.2.0 to 3.3.0
@@ -51,2 +51,3 @@ "use strict"; | ||
'resolution-strategy': ['fast', 'fewer-dependencies'], | ||
'save-peer': Boolean, | ||
'shamefully-flatten': Boolean, | ||
@@ -107,2 +108,3 @@ 'shared-workspace-lockfile': Boolean, | ||
'resolution-strategy': 'fast', | ||
'save-peer': false, | ||
'shared-workspace-shrinkwrap': true, | ||
@@ -202,2 +204,15 @@ 'shrinkwrap': npmDefaults.shrinkwrap, | ||
} | ||
if (opts.cliArgs['save-peer']) { | ||
if (opts.cliArgs['save-prod']) { | ||
const err = new Error('A package cannot be a peer dependency and a prod dependency at the same time'); | ||
err['code'] = 'ERR_PNPM_CONFIG_CONFLICT_PEER_CANNOT_BE_PROD_DEP'; // tslint:disable-line | ||
throw err; | ||
} | ||
if (opts.cliArgs['save-optional']) { | ||
const err = new Error('A package cannot be a peer dependency and an optional dependency at the same time'); | ||
err['code'] = 'ERR_PNPM_CONFIG_CONFLICT_PEER_CANNOT_BE_OPTIONAL_DEP'; // tslint:disable-line | ||
throw err; | ||
} | ||
pnpmConfig.saveDev = true; | ||
} | ||
if (pnpmConfig.sharedWorkspaceLockfile && !pnpmConfig.lockfileDirectory) { | ||
@@ -204,0 +219,0 @@ pnpmConfig.lockfileDirectory = pnpmConfig.workspacePrefix || undefined; |
@@ -18,2 +18,3 @@ import { Registries } from '@pnpm/types'; | ||
saveOptional?: boolean; | ||
savePeer?: boolean; | ||
production?: boolean; | ||
@@ -20,0 +21,0 @@ development?: boolean; |
{ | ||
"name": "@pnpm/config", | ||
"version": "3.2.0", | ||
"version": "3.3.0", | ||
"description": "Gets configs for pnpm", | ||
@@ -33,3 +33,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@pnpm/types": "3.1.0", | ||
"@pnpm/types": "3.2.0", | ||
"@types/node": "*", | ||
@@ -53,5 +53,5 @@ "@types/which": "1.3.1", | ||
"tempy": "0.3.0", | ||
"ts-node": "8.0.3", | ||
"ts-node": "8.1.0", | ||
"tslint": "5.16.0", | ||
"typescript": "3.4.4" | ||
"typescript": "3.4.5" | ||
}, | ||
@@ -58,0 +58,0 @@ "mos": { |
Sorry, the diff of this file is not supported yet
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
27139
343
+ Added@pnpm/types@3.2.0(transitive)
- Removed@pnpm/types@3.1.0(transitive)
Updated@pnpm/types@3.2.0