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.3.4 to 3.4.0

1

lib/findBestGlobalPrefixOnWindows.js

@@ -15,2 +15,1 @@ "use strict";

exports.default = findBestGlobalPrefixOnWindows;
//# sourceMappingURL=findBestGlobalPrefixOnWindows.js.map

@@ -17,2 +17,1 @@ "use strict";

exports.normalizeRegistry = normalizeRegistry;
//# sourceMappingURL=getScopeRegistries.js.map

1

lib/index.d.ts

@@ -13,1 +13,2 @@ import { PnpmConfigs } from './PnpmConfigs';

export default _default;
export declare function findWorkspacePrefix(prefix: string): Promise<string | undefined>;

@@ -87,7 +87,5 @@ "use strict";

catch (err) { } // tslint:disable-line:no-empty
const workspaceManifestLocation = cliArgs['global'] // tslint:disable-line
const workspacePrefix = cliArgs['global'] // tslint:disable-line
? null
: (await findUp(WORKSPACE_MANIFEST_FILENAME, {
cwd: cliArgs['prefix'] || process.cwd(),
}) || null);
: (await findWorkspacePrefix(cliArgs['prefix'] || process.cwd()) || null);
const npmConfig = loadNpmConf(cliArgs, exports.types, {

@@ -117,3 +115,3 @@ 'bail': true,

'workspace-concurrency': 4,
'workspace-prefix': workspaceManifestLocation && path.dirname(workspaceManifestLocation),
'workspace-prefix': workspacePrefix,
});

@@ -245,4 +243,14 @@ process.execPath = originalExecPath;

pnpmConfig.sideEffectsCacheWrite = pnpmConfig.sideEffectsCache;
if (!pnpmConfig.ignoreScripts && pnpmConfig.workspacePrefix) {
pnpmConfig.extraBinPaths = [path.join(pnpmConfig.workspacePrefix, 'node_modules', '.bin')];
}
else {
pnpmConfig.extraBinPaths = [];
}
return pnpmConfig;
};
//# sourceMappingURL=index.js.map
async function findWorkspacePrefix(prefix) {
const workspaceManifestLocation = await findUp(WORKSPACE_MANIFEST_FILENAME, { cwd: prefix });
return workspaceManifestLocation && path.dirname(workspaceManifestLocation);
}
exports.findWorkspacePrefix = findWorkspacePrefix;

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

cliArgs: Record<string, any>;
extraBinPaths: string[];
filter: string[];

@@ -7,0 +8,0 @@ rawNpmConfig: Record<string, any>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=PnpmConfigs.js.map
{
"name": "@pnpm/config",
"version": "3.3.4",
"version": "3.4.0",
"description": "Gets configs for pnpm",

@@ -46,8 +46,8 @@ "main": "lib/index.js",

"rimraf": "2.6.3",
"tape": "4.10.1",
"tape": "4.10.2",
"tempy": "0.3.0",
"ts-node": "8.1.0",
"tslint": "5.16.0",
"typescript": "3.4.5"
"ts-node": "8.2.0",
"tslint": "5.17.0",
"typescript": "3.5.1"
}
}
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