@pnpm/config
Advanced tools
Comparing version 9.2.0 to 10.0.0
# @pnpm/config | ||
## 10.0.0 | ||
### Major Changes | ||
- db17f6f7b: Move Project and ProjectsGraph to @pnpm/types. | ||
- 1146b76d2: `globalBin` is removed from the returned object. | ||
The value of `bin` is set by the `@pnpm/global-bin-dir` package when the `--global` option is used. | ||
### Patch Changes | ||
- Updated dependencies [1146b76d2] | ||
- Updated dependencies [db17f6f7b] | ||
- @pnpm/global-bin-dir@1.0.0 | ||
- @pnpm/types@6.2.0 | ||
## 9.2.0 | ||
@@ -4,0 +20,0 @@ |
@@ -1,12 +0,3 @@ | ||
import { ProjectManifest, Registries } from '@pnpm/types'; | ||
import { Project, ProjectsGraph, Registries } from '@pnpm/types'; | ||
export declare type UniversalOptions = Pick<Config, 'color' | 'dir' | 'rawConfig' | 'rawLocalConfig'>; | ||
export declare type Project = { | ||
dir: string; | ||
manifest: ProjectManifest; | ||
writeProjectManifest(manifest: ProjectManifest, force?: boolean | undefined): Promise<void>; | ||
}; | ||
export declare type ProjectsGraph = Record<string, { | ||
dependencies: string[]; | ||
package: Project; | ||
}>; | ||
export interface Config { | ||
@@ -24,3 +15,2 @@ allProjects?: Project[]; | ||
rawConfig: Record<string, any>; | ||
globalBin: string; | ||
dryRun?: boolean; | ||
@@ -27,0 +17,0 @@ global?: boolean; |
@@ -1,3 +0,3 @@ | ||
import { Config, Project, ProjectsGraph, UniversalOptions } from './Config'; | ||
export { Config, UniversalOptions, Project, ProjectsGraph }; | ||
import { Config, UniversalOptions } from './Config'; | ||
export { Config, UniversalOptions }; | ||
export declare const types: any; | ||
@@ -4,0 +4,0 @@ export declare type CliOptions = Record<string, unknown> & { |
@@ -6,2 +6,3 @@ "use strict"; | ||
const error_1 = require("@pnpm/error"); | ||
const global_bin_dir_1 = require("@pnpm/global-bin-dir"); | ||
const loadNpmConf = require("@zkochan/npm-conf"); | ||
@@ -173,5 +174,2 @@ const npmTypes = require("@zkochan/npm-conf/lib/types"); | ||
: findBestGlobalPrefixOnWindows_1.default(npmConfig.globalPrefix, process.env)); | ||
pnpmConfig.globalBin = process.platform === 'win32' | ||
? npmGlobalPrefix | ||
: path.resolve(npmGlobalPrefix, 'bin'); | ||
pnpmConfig.globalDir = pnpmConfig.globalDir ? npmGlobalPrefix : path.join(npmGlobalPrefix, 'pnpm-global'); | ||
@@ -202,3 +200,6 @@ pnpmConfig.lockfileDir = (_g = (_f = pnpmConfig.lockfileDir) !== null && _f !== void 0 ? _f : pnpmConfig.lockfileDirectory) !== null && _g !== void 0 ? _g : pnpmConfig.shrinkwrapDirectory; | ||
pnpmConfig.dir = path.join(pnpmConfig.globalDir, constants_1.LAYOUT_VERSION.toString()); | ||
pnpmConfig.bin = pnpmConfig.globalBin; | ||
pnpmConfig.bin = cliOptions['dir'] | ||
? (process.platform === 'win32' | ||
? cliOptions.dir : path.resolve(cliOptions.dir, 'bin')) | ||
: global_bin_dir_1.default(); | ||
pnpmConfig.allowNew = true; | ||
@@ -205,0 +206,0 @@ pnpmConfig.ignoreCurrentPrefs = true; |
{ | ||
"name": "@pnpm/config", | ||
"version": "9.2.0", | ||
"version": "10.0.0", | ||
"description": "Gets configuration options for pnpm", | ||
@@ -36,3 +36,4 @@ "main": "lib/index.js", | ||
"@pnpm/error": "1.2.0", | ||
"@pnpm/types": "6.1.0", | ||
"@pnpm/global-bin-dir": "^1.0.0", | ||
"@pnpm/types": "6.2.0", | ||
"@zkochan/npm-conf": "2.0.0", | ||
@@ -39,0 +40,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
24793
9
470
+ Added@pnpm/global-bin-dir@^1.0.0
+ Added@pnpm/error@1.4.0(transitive)
+ Added@pnpm/global-bin-dir@1.2.6(transitive)
+ Added@pnpm/types@6.2.0(transitive)
+ Addedcan-write-to-dir@1.1.1(transitive)
+ Addedcrypto-random-string@2.0.0(transitive)
+ Addedpath-name@1.0.0(transitive)
+ Addedpath-temp@2.1.0(transitive)
+ Addedunique-string@2.0.0(transitive)
- Removed@pnpm/types@6.1.0(transitive)
Updated@pnpm/types@6.2.0