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
318
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 9.2.0 to 10.0.0

16

CHANGELOG.md
# @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 @@

12

lib/Config.d.ts

@@ -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",

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