@pnpm/cli-utils
Advanced tools
Comparing version
# @pnpm/cli-utils | ||
## 0.6.0 | ||
### Minor Changes | ||
- 97b986fbc: Node.js 10 support is dropped. At least Node.js 12.17 is required for the package to work. | ||
### Patch Changes | ||
- Updated dependencies [97b986fbc] | ||
- Updated dependencies [78470a32d] | ||
- Updated dependencies [aed712455] | ||
- Updated dependencies [aed712455] | ||
- Updated dependencies [90487a3a8] | ||
- @pnpm/cli-meta@2.0.0 | ||
- @pnpm/config@12.0.0 | ||
- @pnpm/default-reporter@8.0.0 | ||
- @pnpm/error@2.0.0 | ||
- @pnpm/manifest-utils@2.0.0 | ||
- @pnpm/package-is-installable@5.0.0 | ||
- @pnpm/read-project-manifest@2.0.0 | ||
## 0.5.4 | ||
@@ -4,0 +25,0 @@ |
@@ -10,3 +10,3 @@ "use strict"; | ||
async function default_1(cliOptions, opts) { | ||
const { config, warnings } = await config_1.default({ | ||
const { config, warnings } = await (0, config_1.default)({ | ||
cliOptions, | ||
@@ -24,3 +24,3 @@ globalDirShouldAllowWrite: opts.globalDirShouldAllowWrite, | ||
if (warnings.length > 0) { | ||
console.log(warnings.map((warning) => default_reporter_1.formatWarn(warning)).join('\n')); | ||
console.log(warnings.map((warning) => (0, default_reporter_1.formatWarn)(warning)).join('\n')); | ||
} | ||
@@ -27,0 +27,0 @@ return config; |
@@ -27,5 +27,5 @@ "use strict"; | ||
const [pnpmMajorVersion] = cli_meta_1.default.version.split('.'); | ||
return `https://pnpm.js.org/${pnpmMajorVersion}.x/cli/${cmd}`; | ||
return `https://pnpm.io/${pnpmMajorVersion}.x/cli/${cmd}`; | ||
}; | ||
exports.docsUrl = docsUrl; | ||
//# sourceMappingURL=index.js.map |
@@ -13,4 +13,5 @@ "use strict"; | ||
const pnpmVersion = cli_meta_1.default.name === 'pnpm' | ||
? cli_meta_1.default.stableVersion : undefined; | ||
const err = package_is_installable_1.checkPackage(pkgPath, pkg, { pnpmVersion }); | ||
? cli_meta_1.default.stableVersion | ||
: undefined; | ||
const err = (0, package_is_installable_1.checkPackage)(pkgPath, pkg, { pnpmVersion }); | ||
if (err === null) | ||
@@ -17,0 +18,0 @@ return; |
@@ -10,6 +10,6 @@ "use strict"; | ||
async function readDepNameCompletions(dir) { | ||
const { manifest } = await read_project_manifest_1.default(dir !== null && dir !== void 0 ? dir : process.cwd()); | ||
return Object.keys(manifest_utils_1.getAllDependenciesFromManifest(manifest)).map((name) => ({ name })); | ||
const { manifest } = await (0, read_project_manifest_1.default)(dir !== null && dir !== void 0 ? dir : process.cwd()); | ||
return Object.keys((0, manifest_utils_1.getAllDependenciesFromManifest)(manifest)).map((name) => ({ name })); | ||
} | ||
exports.readDepNameCompletions = readDepNameCompletions; | ||
//# sourceMappingURL=readDepNameCompletions.js.map |
@@ -26,4 +26,4 @@ "use strict"; | ||
async function readProjectManifest(projectDir, opts) { | ||
const { fileName, manifest, writeProjectManifest } = await read_project_manifest_1.default(projectDir); | ||
packageIsInstallable_1.packageIsInstallable(projectDir, manifest, opts); // eslint-disable-line @typescript-eslint/no-explicit-any | ||
const { fileName, manifest, writeProjectManifest } = await (0, read_project_manifest_1.default)(projectDir); | ||
(0, packageIsInstallable_1.packageIsInstallable)(projectDir, manifest, opts); // eslint-disable-line @typescript-eslint/no-explicit-any | ||
return { fileName, manifest, writeProjectManifest }; | ||
@@ -34,3 +34,3 @@ } | ||
const manifest = await utils.readProjectManifestOnly(projectDir); | ||
packageIsInstallable_1.packageIsInstallable(projectDir, manifest, opts); // eslint-disable-line @typescript-eslint/no-explicit-any | ||
(0, packageIsInstallable_1.packageIsInstallable)(projectDir, manifest, opts); // eslint-disable-line @typescript-eslint/no-explicit-any | ||
return manifest; | ||
@@ -41,5 +41,5 @@ } | ||
const { fileName, manifest, writeProjectManifest } = await utils.tryReadProjectManifest(projectDir); | ||
if (!manifest) | ||
if (manifest == null) | ||
return { fileName, manifest, writeProjectManifest }; | ||
packageIsInstallable_1.packageIsInstallable(projectDir, manifest, opts); // eslint-disable-line @typescript-eslint/no-explicit-any | ||
(0, packageIsInstallable_1.packageIsInstallable)(projectDir, manifest, opts); // eslint-disable-line @typescript-eslint/no-explicit-any | ||
return { fileName, manifest, writeProjectManifest }; | ||
@@ -46,0 +46,0 @@ } |
@@ -16,3 +16,3 @@ "use strict"; | ||
function throwOnCommandFail(command, recursiveSummary) { | ||
if (recursiveSummary.fails.length) { | ||
if (recursiveSummary.fails.length > 0) { | ||
throw new RecursiveFailError(command, recursiveSummary); | ||
@@ -19,0 +19,0 @@ } |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TABLE_OPTIONS = void 0; | ||
const chalk = require("chalk"); | ||
const chalk_1 = __importDefault(require("chalk")); | ||
exports.TABLE_OPTIONS = { | ||
@@ -26,4 +29,4 @@ border: { | ||
for (const [key, value] of Object.entries(exports.TABLE_OPTIONS.border)) { | ||
exports.TABLE_OPTIONS.border[key] = chalk.grey(value); | ||
exports.TABLE_OPTIONS.border[key] = chalk_1.default.grey(value); | ||
} | ||
//# sourceMappingURL=style.js.map |
{ | ||
"name": "@pnpm/cli-utils", | ||
"version": "0.5.4", | ||
"version": "0.6.0", | ||
"description": "Utils for pnpm commands", | ||
@@ -12,3 +12,3 @@ "main": "lib/index.js", | ||
"engines": { | ||
"node": ">=10.16" | ||
"node": ">=12.17" | ||
}, | ||
@@ -18,3 +18,3 @@ "scripts": { | ||
"prepublishOnly": "pnpm run compile", | ||
"compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build", | ||
"compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build && pnpm run lint -- --fix", | ||
"test": "pnpm run compile" | ||
@@ -26,3 +26,2 @@ }, | ||
], | ||
"author": "Zoltan Kochan <z@kochan.io> (https://www.kochan.io/)", | ||
"license": "MIT", | ||
@@ -34,14 +33,14 @@ "bugs": { | ||
"devDependencies": { | ||
"@pnpm/logger": "^3.2.3", | ||
"@pnpm/types": "6.4.0", | ||
"@pnpm/logger": "^4.0.0", | ||
"@pnpm/types": "7.0.0", | ||
"@types/ramda": "^0.27.35" | ||
}, | ||
"dependencies": { | ||
"@pnpm/cli-meta": "1.0.2", | ||
"@pnpm/config": "11.14.2", | ||
"@pnpm/default-reporter": "7.10.7", | ||
"@pnpm/error": "1.4.0", | ||
"@pnpm/manifest-utils": "1.1.5", | ||
"@pnpm/package-is-installable": "4.0.19", | ||
"@pnpm/read-project-manifest": "1.1.7", | ||
"@pnpm/cli-meta": "2.0.0", | ||
"@pnpm/config": "12.0.0", | ||
"@pnpm/default-reporter": "8.0.0", | ||
"@pnpm/error": "2.0.0", | ||
"@pnpm/manifest-utils": "2.0.0", | ||
"@pnpm/package-is-installable": "5.0.0", | ||
"@pnpm/read-project-manifest": "2.0.0", | ||
"chalk": "^4.1.0", | ||
@@ -51,5 +50,5 @@ "load-json-file": "^6.2.0" | ||
"peerDependencies": { | ||
"@pnpm/logger": "^3.2.3" | ||
"@pnpm/logger": "^4.0.0" | ||
}, | ||
"funding": "https://opencollective.com/pnpm" | ||
} |
@@ -15,2 +15,2 @@ # @pnpm/cli-utils | ||
MIT © [Zoltan Kochan](https://www.kochan.io/) | ||
MIT |
Sorry, the diff of this file is not supported yet
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
21775
3.28%264
1.54%1
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated
Updated