@zeplin/cli
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "@zeplin/cli", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Zeplin CLI", | ||
@@ -59,3 +59,3 @@ "main": "./dist/src/app", | ||
"@hapi/joi": "^17.1.1", | ||
"axios": "^0.19.0", | ||
"axios": "^0.21.1", | ||
"chalk": "^3.0.0", | ||
@@ -68,4 +68,7 @@ "chokidar": "^3.3.1", | ||
"fs-extra": "^8.1.0", | ||
"has-yarn": "^2.1.0", | ||
"http-status-codes": "^1.4.0", | ||
"inquirer": "^7.0.0", | ||
"is-installed-globally": "^0.3.2", | ||
"is-yarn-global": "^0.3.0", | ||
"jsonwebtoken": "^8.5.1", | ||
@@ -72,0 +75,0 @@ "mask-json": "^1.0.3", |
@@ -42,2 +42,4 @@ "use strict"; | ||
const logger_1 = __importDefault(require("../../util/logger")); | ||
const package_1 = require("../../util/package"); | ||
const text_1 = require("../../util/text"); | ||
const ALLOWED_LINK_TYPES = [ | ||
@@ -56,4 +58,4 @@ "styleguidist" /* styleguidist */, | ||
Could not find plugin ${chalk_1.default.bold(pluginName)} failed. | ||
Please make sure that it's globally installed and try again. | ||
npm install -g ${pluginName} | ||
Please make sure that it's ${package_1.isRunningFromGlobal() ? "globally " : ""}installed and try again. | ||
${text_1.getInstallCommand(pluginName)} | ||
`); | ||
@@ -60,0 +62,0 @@ error.stack = e.stack; |
declare const indent: (multiLineText: string, opts?: { | ||
character: string; | ||
}) => string; | ||
export { indent }; | ||
declare const getInstallCommand: (packageName: string) => string; | ||
export { indent, getInstallCommand }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.indent = void 0; | ||
exports.getInstallCommand = exports.indent = void 0; | ||
const package_1 = require("./package"); | ||
const indentRegex = /^(?!\s*$)/gm; | ||
@@ -8,2 +9,15 @@ const indentCount = 4; | ||
exports.indent = indent; | ||
const getInstallCommand = (packageName) => { | ||
if (package_1.isRunningFromYarnGlobal()) { | ||
return `yarn global add ${packageName}`; | ||
} | ||
else if (package_1.isRunningFromGlobal()) { | ||
return `npm install -g ${packageName}`; | ||
} | ||
else if (package_1.projectHasYarn()) { | ||
return `yarn add ${packageName}`; | ||
} | ||
return `npm install ${packageName}`; | ||
}; | ||
exports.getInstallCommand = getInstallCommand; | ||
//# sourceMappingURL=text.js.map |
{ | ||
"name": "@zeplin/cli", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Zeplin CLI", | ||
@@ -59,3 +59,3 @@ "main": "./dist/src/app", | ||
"@hapi/joi": "^17.1.1", | ||
"axios": "^0.19.0", | ||
"axios": "^0.21.1", | ||
"chalk": "^3.0.0", | ||
@@ -68,4 +68,7 @@ "chokidar": "^3.3.1", | ||
"fs-extra": "^8.1.0", | ||
"has-yarn": "^2.1.0", | ||
"http-status-codes": "^1.4.0", | ||
"inquirer": "^7.0.0", | ||
"is-installed-globally": "^0.3.2", | ||
"is-yarn-global": "^0.3.0", | ||
"jsonwebtoken": "^8.5.1", | ||
@@ -72,0 +75,0 @@ "mask-json": "^1.0.3", |
Sorry, the diff of this file is not supported yet
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
239346
140
4276
21
+ Addedhas-yarn@^2.1.0
+ Addedis-installed-globally@^0.3.2
+ Addedis-yarn-global@^0.3.0
+ Addedaxios@0.21.4(transitive)
+ Addedfollow-redirects@1.15.9(transitive)
- Removedaxios@0.19.2(transitive)
- Removedfollow-redirects@1.5.10(transitive)
Updatedaxios@^0.21.1