@pnpm/cli-utils
Advanced tools
Comparing version 0.4.23 to 0.4.24
# @pnpm/cli-utils | ||
## 0.4.24 | ||
### Patch Changes | ||
- Updated dependencies [ac0d3e122] | ||
- @pnpm/config@11.2.6 | ||
## 0.4.23 | ||
@@ -4,0 +11,0 @@ |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const cli_meta_1 = require("@pnpm/cli-meta"); | ||
const config_1 = require("@pnpm/config"); | ||
const cli_meta_1 = __importDefault(require("@pnpm/cli-meta")); | ||
const config_1 = __importDefault(require("@pnpm/config")); | ||
async function default_1(cliOptions, opts) { | ||
@@ -6,0 +9,0 @@ const { config, warnings } = await config_1.default({ |
@@ -12,5 +12,8 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.docsUrl = exports.getConfig = void 0; | ||
const getConfig_1 = require("./getConfig"); | ||
const getConfig_1 = __importDefault(require("./getConfig")); | ||
exports.getConfig = getConfig_1.default; | ||
@@ -17,0 +20,0 @@ __exportStar(require("./packageIsInstallable"), exports); |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.packageIsInstallable = void 0; | ||
const cli_meta_1 = require("@pnpm/cli-meta"); | ||
const logger_1 = require("@pnpm/logger"); | ||
const cli_meta_1 = __importDefault(require("@pnpm/cli-meta")); | ||
const logger_1 = __importDefault(require("@pnpm/logger")); | ||
const package_is_installable_1 = require("@pnpm/package-is-installable"); | ||
function packageIsInstallable(pkgPath, pkg, opts) { | ||
var _a; | ||
const pnpmVersion = cli_meta_1.default.name === 'pnpm' | ||
@@ -13,4 +17,3 @@ ? cli_meta_1.default.stableVersion : undefined; | ||
return; | ||
if ((err instanceof package_is_installable_1.UnsupportedEngineError && err.wanted.pnpm) || | ||
opts.engineStrict) | ||
if ((_a = (err instanceof package_is_installable_1.UnsupportedEngineError && err.wanted.pnpm)) !== null && _a !== void 0 ? _a : opts.engineStrict) | ||
throw err; | ||
@@ -17,0 +20,0 @@ logger_1.default.warn({ |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.readDepNameCompletions = void 0; | ||
const manifest_utils_1 = require("@pnpm/manifest-utils"); | ||
const read_project_manifest_1 = require("@pnpm/read-project-manifest"); | ||
const read_project_manifest_1 = __importDefault(require("@pnpm/read-project-manifest")); | ||
async function readDepNameCompletions(dir) { | ||
@@ -7,0 +10,0 @@ const { manifest } = await read_project_manifest_1.default(dir !== null && dir !== void 0 ? dir : process.cwd()); |
"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; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.tryReadProjectManifest = exports.readProjectManifestOnly = exports.readProjectManifest = void 0; | ||
const read_project_manifest_1 = require("@pnpm/read-project-manifest"), utils = read_project_manifest_1; | ||
const read_project_manifest_1 = __importStar(require("@pnpm/read-project-manifest")), utils = read_project_manifest_1; | ||
const packageIsInstallable_1 = require("./packageIsInstallable"); | ||
async function readProjectManifest(projectDir, opts) { | ||
const { fileName, manifest, writeProjectManifest } = await read_project_manifest_1.default(projectDir); | ||
packageIsInstallable_1.packageIsInstallable(projectDir, manifest, opts); // tslint:disable-line:no-any | ||
packageIsInstallable_1.packageIsInstallable(projectDir, manifest, opts); // eslint-disable-line @typescript-eslint/no-explicit-any | ||
return { fileName, manifest, writeProjectManifest }; | ||
@@ -14,3 +33,3 @@ } | ||
const manifest = await utils.readProjectManifestOnly(projectDir); | ||
packageIsInstallable_1.packageIsInstallable(projectDir, manifest, opts); // tslint:disable-line:no-any | ||
packageIsInstallable_1.packageIsInstallable(projectDir, manifest, opts); // eslint-disable-line @typescript-eslint/no-explicit-any | ||
return manifest; | ||
@@ -23,3 +42,3 @@ } | ||
return { fileName, manifest, writeProjectManifest }; | ||
packageIsInstallable_1.packageIsInstallable(projectDir, manifest, opts); // tslint:disable-line:no-any | ||
packageIsInstallable_1.packageIsInstallable(projectDir, manifest, opts); // eslint-disable-line @typescript-eslint/no-explicit-any | ||
return { fileName, manifest, writeProjectManifest }; | ||
@@ -26,0 +45,0 @@ } |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.throwOnCommandFail = void 0; | ||
const error_1 = require("@pnpm/error"); | ||
const error_1 = __importDefault(require("@pnpm/error")); | ||
class RecursiveFailError extends error_1.default { | ||
@@ -6,0 +9,0 @@ constructor(command, recursiveSummary) { |
@@ -25,5 +25,5 @@ "use strict"; | ||
}; | ||
for (let [key, value] of Object.entries(exports.TABLE_OPTIONS.border)) { | ||
for (const [key, value] of Object.entries(exports.TABLE_OPTIONS.border)) { | ||
exports.TABLE_OPTIONS.border[key] = chalk.grey(value); | ||
} | ||
//# sourceMappingURL=style.js.map |
{ | ||
"name": "@pnpm/cli-utils", | ||
"version": "0.4.23", | ||
"version": "0.4.24", | ||
"description": "Utils for pnpm commands", | ||
@@ -15,3 +15,3 @@ "main": "lib/index.js", | ||
"scripts": { | ||
"lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", | ||
"lint": "eslint -c ../../eslint.json src/**/*.ts", | ||
"prepublishOnly": "pnpm run compile", | ||
@@ -39,3 +39,3 @@ "compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build", | ||
"@pnpm/cli-meta": "1.0.1", | ||
"@pnpm/config": "11.2.5", | ||
"@pnpm/config": "11.2.6", | ||
"@pnpm/error": "1.3.0", | ||
@@ -42,0 +42,0 @@ "@pnpm/manifest-utils": "1.0.3", |
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
16753
252
+ Added@pnpm/config@11.2.6(transitive)
- Removed@pnpm/config@11.2.5(transitive)
Updated@pnpm/config@11.2.6