@pnpm/config
Advanced tools
Comparing version 900.0.0 to 1000.0.0
@@ -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; |
@@ -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
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
99562
1529
+ Added@pnpm/catalogs.config@1000.0.0(transitive)
+ Added@pnpm/catalogs.types@1000.0.0(transitive)
+ Added@pnpm/constants@1000.0.0(transitive)
+ Added@pnpm/core-loggers@1000.0.0(transitive)
+ Added@pnpm/crypto.hash@1000.0.0(transitive)
+ Added@pnpm/crypto.polyfill@1000.0.0(transitive)
+ Added@pnpm/error@1000.0.0(transitive)
+ Added@pnpm/fetcher-base@1000.0.0(transitive)
+ Added@pnpm/git-utils@1000.0.0(transitive)
+ Added@pnpm/graceful-fs@1000.0.0(transitive)
+ Added@pnpm/hooks.types@1000.0.0(transitive)
+ Added@pnpm/lockfile.types@1000.0.0(transitive)
+ Added@pnpm/logger@1000.0.0(transitive)
+ Added@pnpm/matcher@1000.0.0(transitive)
+ Added@pnpm/patching.types@1000.0.0(transitive)
+ Added@pnpm/pnpmfile@1000.0.0(transitive)
+ Added@pnpm/read-project-manifest@1000.0.0(transitive)
+ Added@pnpm/resolver-base@1000.0.0(transitive)
+ Added@pnpm/store-controller-types@1000.0.0(transitive)
+ Added@pnpm/text.comments-parser@1000.0.0(transitive)
+ Added@pnpm/types@1000.0.0(transitive)
+ Added@pnpm/workspace.read-manifest@1000.0.0(transitive)
+ Added@pnpm/write-project-manifest@1000.0.0(transitive)
- Removed@pnpm/catalogs.config@900.0.0(transitive)
- Removed@pnpm/catalogs.types@900.0.0(transitive)
- Removed@pnpm/constants@900.0.0(transitive)
- Removed@pnpm/core-loggers@900.0.0(transitive)
- Removed@pnpm/crypto.base32-hash@900.0.0(transitive)
- Removed@pnpm/crypto.polyfill@900.0.0(transitive)
- Removed@pnpm/error@900.0.0(transitive)
- Removed@pnpm/fetcher-base@900.0.0(transitive)
- Removed@pnpm/git-utils@900.0.0(transitive)
- Removed@pnpm/graceful-fs@900.0.0(transitive)
- Removed@pnpm/hooks.types@900.0.0(transitive)
- Removed@pnpm/lockfile.types@900.0.0(transitive)
- Removed@pnpm/logger@900.0.0(transitive)
- Removed@pnpm/matcher@900.0.0(transitive)
- Removed@pnpm/patching.types@900.0.0(transitive)
- Removed@pnpm/pnpmfile@900.0.0(transitive)
- Removed@pnpm/read-project-manifest@900.0.0(transitive)
- Removed@pnpm/resolver-base@900.0.0(transitive)
- Removed@pnpm/store-controller-types@900.0.0(transitive)
- Removed@pnpm/text.comments-parser@900.0.0(transitive)
- Removed@pnpm/types@900.0.0(transitive)
- Removed@pnpm/workspace.read-manifest@900.0.0(transitive)
- Removed@pnpm/write-project-manifest@900.0.0(transitive)
- Removedrfc4648@1.5.4(transitive)
Updated@pnpm/constants@1000.0.0
Updated@pnpm/error@1000.0.0
Updated@pnpm/git-utils@1000.0.0
Updated@pnpm/matcher@1000.0.0
Updated@pnpm/pnpmfile@1000.0.0
Updated@pnpm/types@1000.0.0