@pnpm/cli-utils
Advanced tools
Comparing version 0.5.4 to 0.6.0
# @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
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 contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
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
21775
264
1
+ Added@pnpm/cli-meta@2.0.0(transitive)
+ Added@pnpm/config@12.0.0(transitive)
+ Added@pnpm/constants@5.0.0(transitive)
+ Added@pnpm/core-loggers@6.0.0(transitive)
+ Added@pnpm/default-reporter@8.0.0(transitive)
+ Added@pnpm/error@2.0.0(transitive)
+ Added@pnpm/global-bin-dir@2.0.0(transitive)
+ Added@pnpm/logger@4.0.0(transitive)
+ Added@pnpm/manifest-utils@2.0.0(transitive)
+ Added@pnpm/package-is-installable@5.0.0(transitive)
+ Added@pnpm/read-project-manifest@2.0.0(transitive)
+ Added@pnpm/types@7.0.0(transitive)
+ Added@pnpm/write-project-manifest@2.0.0(transitive)
+ Addedansi-align@3.0.1(transitive)
+ Addedbole@4.0.1(transitive)
+ Addedboxen@5.1.2(transitive)
+ Addedcli-boxes@2.2.1(transitive)
+ Addedemoji-regex@8.0.0(transitive)
+ Addedfast-safe-stringify@2.1.1(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedndjson@2.0.0(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsplit2@3.2.2(transitive)
+ Addedstring-width@4.2.3(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedthrough2@4.0.2(transitive)
+ Addedtype-fest@0.20.2(transitive)
+ Addedwidest-line@3.1.0(transitive)
+ Addedwrap-ansi@7.0.0(transitive)
- Removed@pnpm/cli-meta@1.0.2(transitive)
- Removed@pnpm/config@11.14.2(transitive)
- Removed@pnpm/constants@4.1.0(transitive)
- Removed@pnpm/core-loggers@5.0.3(transitive)
- Removed@pnpm/default-reporter@7.10.7(transitive)
- Removed@pnpm/error@1.4.0(transitive)
- Removed@pnpm/global-bin-dir@1.2.6(transitive)
- Removed@pnpm/logger@3.2.3(transitive)
- Removed@pnpm/manifest-utils@1.1.5(transitive)
- Removed@pnpm/package-is-installable@4.0.19(transitive)
- Removed@pnpm/read-project-manifest@1.1.7(transitive)
- Removed@pnpm/types@6.4.0(transitive)
- Removed@pnpm/write-project-manifest@1.1.7(transitive)
- Removed@zkochan/bole@3.0.4(transitive)
- Removedany-promise@1.3.0(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedfast-safe-stringify@1.1.13(transitive)
- Removedgraceful-fs@4.2.4(transitive)
- Removedisarray@1.0.0(transitive)
- Removedmz@2.7.0(transitive)
- Removedndjson@1.5.0(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedsplit2@2.2.0(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedthenify@3.3.1(transitive)
- Removedthenify-all@1.6.0(transitive)
- Removedthrough2@2.0.5(transitive)
- Removedxtend@4.0.2(transitive)
Updated@pnpm/cli-meta@2.0.0
Updated@pnpm/config@12.0.0
Updated@pnpm/default-reporter@8.0.0
Updated@pnpm/error@2.0.0
Updated@pnpm/manifest-utils@2.0.0