Comparing version 2.0.0 to 3.0.0-alpha.1
#! /usr/bin/env node | ||
'use strict'; | ||
require('../index'); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const index_1 = require("../index"); | ||
index_1.init(); | ||
//# sourceMappingURL=dojo.js.map |
@@ -17,3 +17,11 @@ "use strict"; | ||
const configExists = !!dojoRcPath && fs_1.existsSync(dojoRcPath); | ||
return configExists ? JSON.parse(fs_1.readFileSync(dojoRcPath, 'utf8')) : {}; | ||
if (configExists) { | ||
try { | ||
return JSON.parse(fs_1.readFileSync(dojoRcPath, 'utf8')); | ||
} | ||
catch (error) { | ||
throw new Error(`Invalid .dojorc: ${error}`); | ||
} | ||
} | ||
return {}; | ||
} | ||
@@ -20,0 +28,0 @@ class SingleCommandConfigurationHelper { |
14
help.js
@@ -44,6 +44,6 @@ "use strict"; | ||
function formatHeader(group = '<group>', command = '[<command>]') { | ||
return `${dojoArt} | ||
return `${chalk_1.default.blueBright(dojoArt)} | ||
${chalk_1.default.bold('Usage:')} | ||
$ ${chalk_1.default.green('dojo')} ${chalk_1.default.green(group)} ${chalk_1.default.dim.green(command)} [<options>] [--help]`; | ||
$ ${chalk_1.default.greenBright('dojo')} ${chalk_1.default.greenBright(group)} ${chalk_1.default.green(command)} [<options>] [--help]`; | ||
} | ||
@@ -72,3 +72,3 @@ function capitalize(value) { | ||
groupMap.forEach((commandMap, group) => { | ||
let groupOutput = ` ${chalk_1.default.green(group)} ${createPadding(group, 8)}`; | ||
let groupOutput = ` ${chalk_1.default.greenBright(group)} ${createPadding(group, 8)}`; | ||
if (hasGroup) { | ||
@@ -84,3 +84,3 @@ groupOutput = `\n${groupOutput}`; | ||
} | ||
groupOutput = `${groupOutput} ${chalk_1.default.dim.green(name)}`; | ||
groupOutput = `${groupOutput} ${chalk_1.default.green(name)}`; | ||
groupOutput = `${groupOutput}${createPadding(name, 10)}`; | ||
@@ -116,3 +116,3 @@ groupOutput = `${groupOutput} ${capitalize(description)}`; | ||
register((key, options) => { | ||
let optionKeys = `${addOptionPrefix(chalk_1.default.green(key))}`; | ||
let optionKeys = `${addOptionPrefix(chalk_1.default.greenBright(key))}`; | ||
if (options.alias) { | ||
@@ -122,5 +122,5 @@ const aliases = Array.isArray(options.alias) ? options.alias : [options.alias]; | ||
if (alias.length === 1) { | ||
return `${addOptionPrefix(chalk_1.default.green(alias))}, ${result}`; | ||
return `${addOptionPrefix(chalk_1.default.greenBright(alias))}, ${result}`; | ||
} | ||
return `${result}, ${addOptionPrefix(chalk_1.default.green(alias))}`; | ||
return `${result}, ${addOptionPrefix(chalk_1.default.greenBright(alias))}`; | ||
}, optionKeys); | ||
@@ -127,0 +127,0 @@ } |
@@ -28,4 +28,3 @@ "use strict"; | ||
} | ||
process.env.DOJO_CLI = 'true'; | ||
init(); | ||
exports.init = init; | ||
//# sourceMappingURL=index.js.map |
@@ -24,3 +24,3 @@ "use strict"; | ||
}, []); | ||
return globby(globPaths, { ignore: '**/*.map' }); | ||
return globby(globPaths, { ignore: '**/*.{map,d.ts}' }); | ||
}); | ||
@@ -37,3 +37,3 @@ } | ||
const builtInCommandParentDirGlob = path_1.join(config.builtInCommandLocation, '/*.js'); | ||
return globby(builtInCommandParentDirGlob, { ignore: '**/*.map' }); | ||
return globby(builtInCommandParentDirGlob, { ignore: '**/*.{map,d.ts}' }); | ||
}); | ||
@@ -40,0 +40,0 @@ } |
@@ -14,4 +14,3 @@ "use strict"; | ||
return new Promise((resolve, reject) => { | ||
cs | ||
.spawn('npm', ['--silent', 'install', ...args], { stdio: 'inherit' }) | ||
cs.spawn('npm', ['--silent', 'install', ...args], { stdio: 'inherit' }) | ||
.on('close', () => { | ||
@@ -18,0 +17,0 @@ resolve(); |
164
package.json
{ | ||
"name": "@dojo/cli", | ||
"version": "2.0.0", | ||
"description": "Dojo 2 CLI utility", | ||
"homepage": "https://dojo.io", | ||
"bugs": { | ||
"url": "https://github.com/dojo/cli/issues" | ||
}, | ||
"engines": { | ||
"node": ">=6", | ||
"npm": ">=3" | ||
}, | ||
"license": "BSD-3-Clause", | ||
"keywords": [ | ||
"dojo", | ||
"cli" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/dojo/cli.git" | ||
}, | ||
"bin": { | ||
"dojo": "bin/dojo.js" | ||
}, | ||
"dependencies": { | ||
"chalk": "^2.3.0", | ||
"cliui": "^4.0.0", | ||
"configstore": "^3.1.1", | ||
"cross-spawn": "^5.1.0", | ||
"detect-indent": "^5.0.0", | ||
"ejs": "^2.5.7", | ||
"execa": "^0.8.0", | ||
"fs-extra": "^5.0.0", | ||
"globby": "^6.0.0", | ||
"inquirer": "^4.0.2", | ||
"pkg-dir": "^2.0.0", | ||
"slice-ansi": "^1.0.0", | ||
"string-width": "^2.1.1", | ||
"tslib": "~1.8.1", | ||
"typings-core": "^2.3.3", | ||
"update-notifier": "^2.3.0", | ||
"yargs": "^10.0.3" | ||
}, | ||
"devDependencies": { | ||
"@types/configstore": "^2.1.1", | ||
"@types/detect-indent": "^5.0.0", | ||
"@types/ejs": "^2.3.33", | ||
"@types/execa": "^0.8.1", | ||
"@types/fs-extra": "^5.0.0", | ||
"@types/glob": "^5.0.30", | ||
"@types/globby": "^0.6.0", | ||
"@types/grunt": "~0.4.0", | ||
"@types/inquirer": "0.0.36", | ||
"@types/mockery": "^1.4.29", | ||
"@types/node": "~9.6.5", | ||
"@types/sinon": "^4.1.2", | ||
"@types/update-notifier": "^1.0.1", | ||
"@types/yargs": "^10.0.0", | ||
"codecov.io": "0.1.6", | ||
"glob": "^7.0.3", | ||
"grunt": "~1.0.1", | ||
"grunt-dojo2": "latest", | ||
"grunt-tslint": "5.0.1", | ||
"husky": "0.14.3", | ||
"intern": "~4.1.0", | ||
"lint-staged": "6.0.0", | ||
"mockery": "^2.1.0", | ||
"prettier": "1.9.2", | ||
"sinon": "^4.1.3", | ||
"tslint": "5.2.0", | ||
"typescript": "~2.6.1" | ||
}, | ||
"lint-staged": { | ||
"*.{ts,tsx}": [ | ||
"prettier --write", | ||
"git add" | ||
] | ||
}, | ||
"prettier": { | ||
"singleQuote": true, | ||
"tabWidth": 4, | ||
"useTabs": true, | ||
"parser": "typescript", | ||
"printWidth": 120, | ||
"arrowParens": "always" | ||
} | ||
"name": "@dojo/cli", | ||
"version": "3.0.0-alpha.1", | ||
"description": "Dojo 2 CLI utility", | ||
"homepage": "https://dojo.io", | ||
"bugs": { | ||
"url": "https://github.com/dojo/cli/issues" | ||
}, | ||
"engines": { | ||
"node": ">=6", | ||
"npm": ">=3" | ||
}, | ||
"license": "BSD-3-Clause", | ||
"keywords": [ | ||
"dojo", | ||
"cli" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/dojo/cli.git" | ||
}, | ||
"bin": { | ||
"dojo": "bin/dojo.js" | ||
}, | ||
"dependencies": { | ||
"chalk": "^2.3.0", | ||
"configstore": "^3.1.1", | ||
"cross-spawn": "^5.1.0", | ||
"detect-indent": "^5.0.0", | ||
"ejs": "^2.5.7", | ||
"execa": "^0.8.0", | ||
"fs-extra": "^5.0.0", | ||
"globby": "^6.0.0", | ||
"inquirer": "^4.0.2", | ||
"pkg-dir": "^2.0.0", | ||
"slice-ansi": "^1.0.0", | ||
"string-width": "^2.1.1", | ||
"tslib": "~1.8.1", | ||
"update-notifier": "^2.3.0", | ||
"yargs": "^10.0.3" | ||
}, | ||
"devDependencies": { | ||
"@dojo/scripts": "^3.0.0-alpha.6", | ||
"@types/configstore": "^2.1.1", | ||
"@types/detect-indent": "^5.0.0", | ||
"@types/ejs": "^2.3.33", | ||
"@types/execa": "^0.8.1", | ||
"@types/fs-extra": "^5.0.0", | ||
"@types/glob": "^5.0.30", | ||
"@types/globby": "^0.6.0", | ||
"@types/inquirer": "0.0.36", | ||
"@types/mockery": "^1.4.29", | ||
"@types/node": "~9.6.5", | ||
"@types/sinon": "~4.3.3", | ||
"@types/update-notifier": "^1.0.1", | ||
"@types/yargs": "^10.0.0", | ||
"codecov": "~3.0.4", | ||
"concurrently": "~3.6.0", | ||
"cpx": "~1.5.0", | ||
"glob": "^7.0.3", | ||
"husky": "0.14.3", | ||
"lint-staged": "6.0.0", | ||
"mockery": "^2.1.0", | ||
"rimraf": "~2.6.2", | ||
"sinon": "~4.5.0" | ||
}, | ||
"lint-staged": { | ||
"*.{ts,tsx}": [ | ||
"prettier --write", | ||
"git add" | ||
] | ||
}, | ||
"prettier": { | ||
"singleQuote": true, | ||
"tabWidth": 4, | ||
"useTabs": true, | ||
"parser": "typescript", | ||
"printWidth": 120, | ||
"arrowParens": "always" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
15
23
9
0
150614
43
1359
1
- Removedcliui@^4.0.0
- Removedtypings-core@^2.3.3
- Removedabbrev@1.1.1(transitive)
- Removedagent-base@2.1.1(transitive)
- Removedany-promise@1.3.0(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedbuffer-from@1.1.2(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removedconcat-stream@1.6.2(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removeddebug@2.6.9(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removederror-ex@1.3.2(transitive)
- Removedextend@3.0.2(transitive)
- Removedform-data@2.5.2(transitive)
- Removedhas@1.0.4(transitive)
- Removedhttp-proxy-agent@1.0.0(transitive)
- Removedhttps-proxy-agent@1.0.0(transitive)
- Removedinvariant@2.2.4(transitive)
- Removedis-absolute@0.2.6(transitive)
- Removedis-arrayish@0.2.1(transitive)
- Removedis-plain-obj@1.1.0(transitive)
- Removedis-relative@0.2.1(transitive)
- Removedis-unc-path@0.1.2(transitive)
- Removedis-windows@0.2.0(transitive)
- Removedisarray@1.0.0(transitive)
- Removedisobject@3.0.1(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedjspm-config@0.3.4(transitive)
- Removedlistify@1.0.3(transitive)
- Removedlockfile@1.0.4(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedmake-error@1.3.6(transitive)
- Removedmake-error-cause@1.2.2(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedms@2.0.0(transitive)
- Removednopt@1.0.10(transitive)
- Removedobject.pick@1.3.0(transitive)
- Removedparse-json@2.2.0(transitive)
- Removedpopsicle@9.2.0(transitive)
- Removedpopsicle-proxy-agent@3.0.0(transitive)
- Removedpopsicle-retry@3.2.1(transitive)
- Removedpopsicle-rewrite@1.0.0(transitive)
- Removedpopsicle-status@2.0.1(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedpromise-finally@3.0.1(transitive)
- Removedpsl@1.13.0(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedsemver@5.0.3(transitive)
- Removedsort-keys@1.1.2(transitive)
- Removedstring-template@1.0.0(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedstrip-bom@3.0.0(transitive)
- Removedthenify@3.3.1(transitive)
- Removedthroat@3.2.0(transitive)
- Removedtouch@1.0.0(transitive)
- Removedtough-cookie@2.5.0(transitive)
- Removedtypedarray@0.0.6(transitive)
- Removedtypescript@2.9.2(transitive)
- Removedtypings-core@2.3.3(transitive)
- Removedunc-path-regex@0.1.2(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedxtend@4.0.2(transitive)
- Removedzip-object@0.1.0(transitive)