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

@pnpm/config

Package Overview
Dependencies
Maintainers
2
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 900.0.0 to 1000.0.0

3

lib/Config.d.ts

@@ -9,2 +9,3 @@ import type { Catalogs } from '@pnpm/catalogs.types';

}
export type VerifyDepsBeforeRun = 'install' | 'warn' | 'error' | 'prompt' | false;
export interface Config {

@@ -32,2 +33,3 @@ allProjects?: Project[];

bin: string;
verifyDepsBeforeRun?: VerifyDepsBeforeRun;
ignoreDepScripts?: boolean;

@@ -182,2 +184,3 @@ ignoreScripts?: boolean;

globalDir?: string;
globalPkgDir: string;
lockfile?: boolean;

@@ -184,0 +187,0 @@ dedupeInjectedDeps?: boolean;

4

lib/index.d.ts

@@ -1,2 +0,2 @@

import { type Config, type UniversalOptions, type WantedPackageManager } from './Config';
import { type Config, type UniversalOptions, type VerifyDepsBeforeRun, type WantedPackageManager } from './Config';
import { types } from './types';

@@ -6,3 +6,3 @@ export { types };

export * from './readLocalConfig';
export type { Config, UniversalOptions, WantedPackageManager };
export type { Config, UniversalOptions, WantedPackageManager, VerifyDepsBeforeRun };
export type CliOptions = Record<string, unknown> & {

@@ -9,0 +9,0 @@ dir?: string;

@@ -135,3 +135,3 @@ "use strict";

'lockfile-include-tarball-url': false,
'manage-package-manager-versions': false,
'manage-package-manager-versions': true,
'modules-cache-max-age': 7 * 24 * 60, // 7 days

@@ -145,6 +145,3 @@ 'dlx-cache-max-age': 24 * 60, // 1 day

'prefer-workspace-packages': false,
'public-hoist-pattern': [
'*eslint*',
'*prettier*',
],
'public-hoist-pattern': [],
'recursive-install': true,

@@ -168,2 +165,3 @@ registry: npmDefaults.registry,

userconfig: npmDefaults.userconfig,
'verify-deps-before-run': false,
'verify-store-integrity': true,

@@ -175,3 +173,3 @@ 'virtual-store-dir': 'node_modules/.pnpm',

'registry-supports-time-field': false,
'virtual-store-dir-max-length': 120,
'virtual-store-dir-max-length': (0, is_windows_1.default)() ? 60 : 120,
'peers-suffix-max-length': 1000,

@@ -252,11 +250,12 @@ };

pnpmConfig.pnpmHomeDir = (0, dirs_1.getDataDir)(process);
let globalDirRoot;
if (pnpmConfig.globalDir) {
globalDirRoot = pnpmConfig.globalDir;
}
else {
globalDirRoot = path_1.default.join(pnpmConfig.pnpmHomeDir, 'global');
}
pnpmConfig.globalPkgDir = path_1.default.join(globalDirRoot, constants_1.LAYOUT_VERSION.toString());
if (cliOptions['global']) {
let globalDirRoot;
if (pnpmConfig.globalDir) {
globalDirRoot = pnpmConfig.globalDir;
}
else {
globalDirRoot = path_1.default.join(pnpmConfig.pnpmHomeDir, 'global');
}
pnpmConfig.dir = path_1.default.join(globalDirRoot, constants_1.LAYOUT_VERSION.toString());
pnpmConfig.dir = pnpmConfig.globalPkgDir;
pnpmConfig.bin = npmConfig.get('global-bin-dir') ?? env.PNPM_HOME;

@@ -263,0 +262,0 @@ if (pnpmConfig.bin) {

@@ -102,2 +102,3 @@ export declare const types: {

'use-stderr': BooleanConstructor;
'verify-deps-before-run': BooleanConstructor;
'verify-store-integrity': BooleanConstructor;

@@ -104,0 +105,0 @@ 'virtual-store-dir': StringConstructor;

@@ -109,2 +109,3 @@ "use strict";

'use-stderr': Boolean,
'verify-deps-before-run': Boolean,
'verify-store-integrity': Boolean,

@@ -111,0 +112,0 @@ 'virtual-store-dir': String,

{
"name": "@pnpm/config",
"version": "900.0.0",
"version": "1000.0.0",
"description": "Gets configuration options for pnpm",

@@ -13,3 +13,3 @@ "main": "lib/index.js",

"keywords": [
"pnpm9",
"pnpm10",
"pnpm",

@@ -42,12 +42,12 @@ "config"

"which": "npm:@pnpm/which@^3.0.1",
"@pnpm/catalogs.config": "900.0.0",
"@pnpm/constants": "900.0.0",
"@pnpm/catalogs.types": "900.0.0",
"@pnpm/error": "900.0.0",
"@pnpm/git-utils": "900.0.0",
"@pnpm/pnpmfile": "900.0.0",
"@pnpm/matcher": "900.0.0",
"@pnpm/read-project-manifest": "900.0.0",
"@pnpm/types": "900.0.0",
"@pnpm/workspace.read-manifest": "900.0.0"
"@pnpm/catalogs.config": "1000.0.0",
"@pnpm/constants": "1000.0.0",
"@pnpm/catalogs.types": "1000.0.0",
"@pnpm/error": "1000.0.0",
"@pnpm/git-utils": "1000.0.0",
"@pnpm/matcher": "1000.0.0",
"@pnpm/pnpmfile": "1000.0.0",
"@pnpm/read-project-manifest": "1000.0.0",
"@pnpm/types": "1000.0.0",
"@pnpm/workspace.read-manifest": "1000.0.0"
},

@@ -58,6 +58,6 @@ "devDependencies": {

"@types/which": "^2.0.2",
"symlink-dir": "^6.0.2",
"@pnpm/config": "900.0.0",
"@pnpm/prepare": "0.0.105",
"@pnpm/test-fixtures": "0.1.35"
"symlink-dir": "^6.0.3",
"@pnpm/config": "1000.0.0",
"@pnpm/test-fixtures": "0.1.36",
"@pnpm/prepare": "0.0.106"
},

@@ -64,0 +64,0 @@ "funding": "https://opencollective.com/pnpm",

Sorry, the diff of this file is not supported yet

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