@pnpm/config
Advanced tools
Comparing version 11.2.5 to 11.2.6
# @pnpm/config | ||
## 11.2.6 | ||
### Patch Changes | ||
- ac0d3e122: Publicly hoist any dependency that is related to ESLint. | ||
## 11.2.5 | ||
@@ -4,0 +10,0 @@ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const path = require("path"); | ||
const isSubdir = require("is-subdir"); | ||
const path = require("path"); | ||
function findBestGlobalPrefixOnWindows(defaultNpmGlobalPrefix, env) { | ||
if (env.LOCALAPPDATA && isSubdir(env.LOCALAPPDATA, defaultNpmGlobalPrefix) || | ||
env.APPDATA && isSubdir(env.APPDATA, defaultNpmGlobalPrefix)) { | ||
var _a; | ||
if ((_a = (env.LOCALAPPDATA && isSubdir(env.LOCALAPPDATA, defaultNpmGlobalPrefix))) !== null && _a !== void 0 ? _a : (env.APPDATA && isSubdir(env.APPDATA, defaultNpmGlobalPrefix))) { | ||
return defaultNpmGlobalPrefix; | ||
@@ -9,0 +9,0 @@ } |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.types = void 0; | ||
const constants_1 = require("@pnpm/constants"); | ||
const error_1 = require("@pnpm/error"); | ||
const global_bin_dir_1 = require("@pnpm/global-bin-dir"); | ||
const error_1 = __importDefault(require("@pnpm/error")); | ||
const global_bin_dir_1 = __importDefault(require("@pnpm/global-bin-dir")); | ||
const camelcase_1 = __importDefault(require("camelcase")); | ||
const findBestGlobalPrefixOnWindows_1 = __importDefault(require("./findBestGlobalPrefixOnWindows")); | ||
const getScopeRegistries_1 = __importStar(require("./getScopeRegistries")); | ||
const path = require("path"); | ||
const loadNpmConf = require("@zkochan/npm-conf"); | ||
const npmTypes = require("@zkochan/npm-conf/lib/types"); | ||
const camelcase_1 = require("camelcase"); | ||
const path = require("path"); | ||
const R = require("ramda"); | ||
const whichcb = require("which"); | ||
const findBestGlobalPrefixOnWindows_1 = require("./findBestGlobalPrefixOnWindows"); | ||
const getScopeRegistries_1 = require("./getScopeRegistries"); | ||
const npmDefaults = loadNpmConf.defaults; | ||
@@ -22,9 +44,9 @@ function which(cmd) { | ||
exports.types = Object.assign({ | ||
'bail': Boolean, | ||
bail: Boolean, | ||
'child-concurrency': Number, | ||
'color': ['always', 'auto', 'never'], | ||
'dev': [null, true], | ||
'dir': String, | ||
color: ['always', 'auto', 'never'], | ||
dev: [null, true], | ||
dir: String, | ||
'fetching-concurrency': Number, | ||
'filter': [String, Array], | ||
filter: [String, Array], | ||
'frozen-lockfile': Boolean, | ||
@@ -36,3 +58,3 @@ 'frozen-shrinkwrap': Boolean, | ||
'global-pnpmfile': String, | ||
'hoist': Boolean, | ||
hoist: Boolean, | ||
'hoist-pattern': Array, | ||
@@ -42,21 +64,21 @@ 'ignore-pnpmfile': Boolean, | ||
'link-workspace-packages': [Boolean, 'deep'], | ||
'lockfile': Boolean, | ||
lockfile: Boolean, | ||
'lockfile-dir': String, | ||
'lockfile-directory': String, | ||
'lockfile-only': Boolean, | ||
'loglevel': ['silent', 'error', 'warn', 'info', 'debug'], | ||
loglevel: ['silent', 'error', 'warn', 'info', 'debug'], | ||
'modules-dir': String, | ||
'network-concurrency': Number, | ||
'npm-path': String, | ||
'offline': Boolean, | ||
offline: Boolean, | ||
'package-import-method': ['auto', 'hardlink', 'clone', 'copy'], | ||
'pnpmfile': String, | ||
pnpmfile: String, | ||
'prefer-frozen-lockfile': Boolean, | ||
'prefer-frozen-shrinkwrap': Boolean, | ||
'prefer-offline': Boolean, | ||
'production': [null, true], | ||
production: [null, true], | ||
'public-hoist-pattern': Array, | ||
'publish-branch': String, | ||
'recursive-install': Boolean, | ||
'reporter': String, | ||
reporter: String, | ||
'save-peer': Boolean, | ||
@@ -72,6 +94,6 @@ 'save-workspace-protocol': Boolean, | ||
'side-effects-cache-readonly': Boolean, | ||
'sort': Boolean, | ||
'store': String, | ||
sort: Boolean, | ||
store: String, | ||
'store-dir': String, | ||
'stream': Boolean, | ||
stream: Boolean, | ||
'strict-peer-dependencies': Boolean, | ||
@@ -114,3 +136,3 @@ 'use-beta-cli': Boolean, | ||
} | ||
catch (err) { } // tslint:disable-line:no-empty | ||
catch (err) { } // eslint-disable-line:no-empty | ||
if (cliOptions.dir) { | ||
@@ -121,4 +143,4 @@ cliOptions['prefix'] = cliOptions.dir; // the npm config system still expects `prefix` | ||
const npmConfig = loadNpmConf(cliOptions, rcOptionsTypes, { | ||
'bail': true, | ||
'color': 'auto', | ||
bail: true, | ||
color: 'auto', | ||
'fetch-retries': 2, | ||
@@ -128,4 +150,4 @@ 'fetch-retry-factor': 10, | ||
'fetch-retry-mintimeout': 10000, | ||
'globalconfig': npmDefaults.globalconfig, | ||
'hoist': true, | ||
globalconfig: npmDefaults.globalconfig, | ||
hoist: true, | ||
'hoist-pattern': ['*'], | ||
@@ -135,6 +157,6 @@ 'ignore-workspace-root-check': false, | ||
'package-lock': npmDefaults['package-lock'], | ||
'pending': false, | ||
'public-hoist-pattern': ['@types/*', 'eslint-plugin-*'], | ||
pending: false, | ||
'public-hoist-pattern': ['@types/*', '*eslint*'], | ||
'recursive-install': true, | ||
'registry': npmDefaults.registry, | ||
registry: npmDefaults.registry, | ||
'save-peer': false, | ||
@@ -144,8 +166,8 @@ 'save-workspace-protocol': true, | ||
'shared-workspace-shrinkwrap': true, | ||
'shrinkwrap': npmDefaults.shrinkwrap, | ||
'sort': true, | ||
shrinkwrap: npmDefaults.shrinkwrap, | ||
sort: true, | ||
'strict-peer-dependencies': false, | ||
'unsafe-perm': npmDefaults['unsafe-perm'], | ||
'use-beta-cli': false, | ||
'userconfig': npmDefaults.userconfig, | ||
userconfig: npmDefaults.userconfig, | ||
'virtual-store-dir': 'node_modules/.pnpm', | ||
@@ -155,3 +177,3 @@ 'workspace-concurrency': 4, | ||
}); | ||
delete cliOptions['prefix']; | ||
delete cliOptions.prefix; | ||
process.execPath = originalExecPath; | ||
@@ -162,3 +184,3 @@ const pnpmConfig = R.fromPairs([ | ||
]); | ||
const cwd = (_c = (cliOptions['dir'] && path.resolve(cliOptions['dir']))) !== null && _c !== void 0 ? _c : npmConfig.localPrefix; // tslint:disable-line | ||
const cwd = (_c = (cliOptions['dir'] && path.resolve(cliOptions['dir']))) !== null && _c !== void 0 ? _c : npmConfig.localPrefix; // eslint-disable-line | ||
pnpmConfig.workspaceDir = opts.workspaceDir; | ||
@@ -169,3 +191,3 @@ pnpmConfig.rawLocalConfig = Object.assign.apply(Object, [ | ||
cliOptions, | ||
]); // tslint:disable-line:no-any | ||
]); // eslint-disable-line @typescript-eslint/no-explicit-any | ||
pnpmConfig.userAgent = pnpmConfig.rawLocalConfig['user-agent'] | ||
@@ -179,3 +201,3 @@ ? pnpmConfig.rawLocalConfig['user-agent'] | ||
{ 'user-agent': pnpmConfig.userAgent }, | ||
]); // tslint:disable-line:no-any | ||
]); // eslint-disable-line @typescript-eslint/no-explicit-any | ||
pnpmConfig.registries = { | ||
@@ -343,6 +365,5 @@ default: getScopeRegistries_1.normalizeRegistry(pnpmConfig.rawConfig.registry), | ||
function getProcessEnv(env) { | ||
return process.env[env] || | ||
process.env[env.toUpperCase()] || | ||
process.env[env.toLowerCase()]; | ||
var _a, _b; | ||
return (_b = (_a = process.env[env]) !== null && _a !== void 0 ? _a : process.env[env.toUpperCase()]) !== null && _b !== void 0 ? _b : process.env[env.toLowerCase()]; | ||
} | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@pnpm/config", | ||
"version": "11.2.5", | ||
"version": "11.2.6", | ||
"description": "Gets configuration options for pnpm", | ||
@@ -13,3 +13,3 @@ "main": "lib/index.js", | ||
"prepublishOnly": "pnpm run compile", | ||
"lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", | ||
"lint": "eslint -c ../../eslint.json src/**/*.ts test/**/*.ts", | ||
"test-with-preview": "ts-node test", | ||
@@ -16,0 +16,0 @@ "_test": "cd ../.. && c8 --reporter lcov --reports-dir packages/config/coverage ts-node packages/config/test --type-check", |
29472
524