@pnpm/config
Advanced tools
Comparing version 2.3.0-1 to 2.3.0
@@ -17,2 +17,3 @@ "use strict"; | ||
const whichcb = require("which"); | ||
const getScopeRegistries_1 = require("./getScopeRegistries"); | ||
const npmDefaults = loadNpmConf.defaults; | ||
@@ -122,4 +123,5 @@ function which(cmd) { | ||
pnpmConfig.rawNpmConfig = Object.assign.apply(Object, npmConfig.list.reverse().concat([cliArgs])); | ||
pnpmConfig.registries = Object.assign({ default: pnpmConfig.registry || 'https://registry.npmjs.org/' }, getScopeRegistries_1.default(pnpmConfig.rawNpmConfig)); | ||
const npmGlobalPrefix = pnpmConfig.rawNpmConfig['pnpm-prefix'] || | ||
(process.env.APPDATA | ||
(process.platform === 'win32' && process.env.APPDATA | ||
? path.join(process.env.APPDATA, 'npm') | ||
@@ -126,0 +128,0 @@ : npmConfig.globalPrefix); |
@@ -0,1 +1,2 @@ | ||
import { Registries } from '@pnpm/types'; | ||
export interface PnpmConfigs extends Record<string, any> { | ||
@@ -69,2 +70,3 @@ bail: boolean; | ||
sharedWorkspaceShrinkwrap: boolean; | ||
registries: Registries; | ||
} |
{ | ||
"name": "@pnpm/config", | ||
"version": "2.3.0-1", | ||
"version": "2.3.0", | ||
"description": "Gets configs for pnpm", | ||
@@ -14,5 +14,5 @@ "main": "lib/index.js", | ||
"lint": "tslint -c tslint.json --project .", | ||
"test-with-preview": "npm run lint && preview && ts-node test && mos t", | ||
"test-with-preview": "npm run lint && ts-node test && mos t", | ||
"pretest": "npm config rm fetch-retry-maxtimeout", | ||
"test": "npm run lint && npm run tsc && pnpm link . && ts-node test && mos t" | ||
"test": "npm run lint && npm run tsc && ts-node test && mos t" | ||
}, | ||
@@ -34,2 +34,3 @@ "repository": "https://github.com/pnpm/pnpm/blob/master/packages/config", | ||
"dependencies": { | ||
"@pnpm/types": "2.0.0", | ||
"@types/camelcase": "^4.1.0", | ||
@@ -44,2 +45,3 @@ "@types/node": "10.12.0", | ||
"devDependencies": { | ||
"@pnpm/config": "link:.", | ||
"@types/mz": "^0.0.32", | ||
@@ -51,3 +53,2 @@ "@types/tape": "^4.2.32", | ||
"mz": "^2.7.0", | ||
"package-preview": "^1.0.1", | ||
"rimraf": "^2.6.2", | ||
@@ -54,0 +55,0 @@ "tape": "^4.8.0", |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
22362
12
289
1
8
+ Added@pnpm/types@2.0.0
+ Added@pnpm/types@2.0.0(transitive)