Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pnpm/config

Package Overview
Dependencies
Maintainers
3
Versions
315
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/config - npm Package Compare versions

Comparing version 3.2.0 to 3.3.0

15

lib/index.js

@@ -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;

1

lib/PnpmConfigs.d.ts

@@ -18,2 +18,3 @@ import { Registries } from '@pnpm/types';

saveOptional?: boolean;
savePeer?: boolean;
production?: boolean;

@@ -20,0 +21,0 @@ development?: boolean;

8

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc