fix: add TS parsing for commands
MODIFY
package.json
package.json
"bin": "bin/run",
"bugs": "https://github.com/dxcli/create-dxcli/issues",
"dependencies": {
- "@dxcli/command": "^0.2.0",
- "@dxcli/config": "^0.1.28",
- "@dxcli/engine": "^0.1.14",
- "@dxcli/version": "^0.1.11",
- "cli-ux": "^3.3.7",
+ "@dxcli/command": "^0.2.3",
+ "@dxcli/config": "^0.1.31",
+ "@dxcli/engine": "^0.1.15",
+ "@dxcli/version": "^0.1.12",
+ "cli-ux": "^3.3.8",
"debug": "^3.1.0",
"fixpack": "^2.3.1",
"lodash": "^4.17.4",
"yosay": "^2.0.1"
},
"devDependencies": {
- "@dxcli/dev": "^2.0.14",
+ "@dxcli/dev": "^2.0.15",
"@dxcli/semantic-release": "^0.3.3",
"@dxcli/test": "^0.9.18",
- "@dxcli/tslint": "^0.1.2",
+ "@dxcli/tslint": "^0.1.3",
"@semantic-release/exec": "^2.0.0",
"@types/shelljs": "^0.7.7",
"@types/yeoman-generator": "^2.0.1",

DELETE
test/helpers/init.js
-process.env.TS_NODE_PROJECT = 'test'

MODIFY
test/run.js
test/run.js
@@ -9,6 +9,7 @@ sh.set('-ev')
// remove CI env var so tests don't run nyc
const {CI} = process.env
delete process.env.CI
+process.env.CREATE_DXCLI_DEBUG = '1'
function generate(args) {
const run = path.join(__dirname, '../bin/run')

MODIFY
yarn.lock
yarn.lock
dependencies:
find-up "^2.1.0"
-"@dxcli/command@^0.2.0":
- version "0.2.0"
- resolved "https://registry.yarnpkg.com/@dxcli/command/-/command-0.2.0.tgz#d076919322cd7b9f61ff2144d46eaa47f62863c0"
+"@dxcli/command@^0.2.2":
+ version "0.2.2"
+ resolved "https://registry.yarnpkg.com/@dxcli/command/-/command-0.2.2.tgz#3a2bf309380cf6b2d7785c9ea14d5a6483684d7a"
dependencies:
"@dxcli/parser" "^0.0.5"
debug "^3.1.0"
lodash "^4.17.4"
tslib "^1.9.0"
-"@dxcli/config@^0.1.28":
- version "0.1.28"
- resolved "https://registry.yarnpkg.com/@dxcli/config/-/config-0.1.28.tgz#76131f25b1725eba3ebf9609d4552cd5372147b8"
+"@dxcli/command@^0.2.3":
+ version "0.2.3"
+ resolved "https://registry.yarnpkg.com/@dxcli/command/-/command-0.2.3.tgz#244ffea9939bd3a4b6cd9defe5f8657a5041cb93"
+ dependencies:
+ "@dxcli/parser" "^0.0.5"
+ debug "^3.1.0"
+ lodash "^4.17.4"
+ tslib "^1.9.0"
+
+"@dxcli/config@^0.1.31":
+ version "0.1.31"
+ resolved "https://registry.yarnpkg.com/@dxcli/config/-/config-0.1.31.tgz#9303597715b07ccd2de4fb2aa84b7e30b22dbd3f"
dependencies:
debug "^3.1.0"
fs-extra "^5.0.0"
lodash "^4.17.4"
read-pkg "^3.0.0"
-"@dxcli/dev@^2.0.14":
- version "2.0.14"
- resolved "https://registry.yarnpkg.com/@dxcli/dev/-/dev-2.0.14.tgz#44834aa54dc60a11737e583a1716405207ab81a2"
+"@dxcli/dev@^2.0.15":
+ version "2.0.15"
+ resolved "https://registry.yarnpkg.com/@dxcli/dev/-/dev-2.0.15.tgz#2984dabb5e8069515ed328cb59d920a00bee7483"
dependencies:
"@dxcli/nyc-config" "^0.0.4"
"@types/ansi-styles" "^2.0.30"
eslint-config-dxcli "^1.2.0"
nyc "^11.4.1"
-"@dxcli/engine@^0.1.14":
- version "0.1.14"
- resolved "https://registry.yarnpkg.com/@dxcli/engine/-/engine-0.1.14.tgz#f43ef9650351c4d81dbe7c8fe0b04124e1c876b5"
+"@dxcli/engine@^0.1.15":
+ version "0.1.15"
+ resolved "https://registry.yarnpkg.com/@dxcli/engine/-/engine-0.1.15.tgz#95a48cd4e08649fd9451fad7b25a9ac014867d49"
dependencies:
- "@dxcli/loader" "^0.2.9"
- cli-ux "^3.2.1"
+ "@dxcli/loader" "^0.2.10"
+ cli-ux "^3.3.8"
debug "^3.1.0"
-"@dxcli/loader@^0.2.9":
- version "0.2.9"
- resolved "https://registry.yarnpkg.com/@dxcli/loader/-/loader-0.2.9.tgz#4022b2b790650efb3015961c892aa081beecb838"
+"@dxcli/loader@^0.2.10":
+ version "0.2.10"
+ resolved "https://registry.yarnpkg.com/@dxcli/loader/-/loader-0.2.10.tgz#cb77814d82e6a931c8d00ef6af646dd47e8de43c"
dependencies:
- "@dxcli/manifest-file" "^0.0.4"
+ "@dxcli/manifest-file" "^0.1.0"
+ cli-ux "^3.3.8"
debug "^3.1.0"
globby "^7.1.1"
lodash "^4.17.4"
-"@dxcli/manifest-file@^0.0.4":
- version "0.0.4"
- resolved "https://registry.yarnpkg.com/@dxcli/manifest-file/-/manifest-file-0.0.4.tgz#cc5f250f9baf59083ad9cc4693af61f08cc0daf2"
+"@dxcli/manifest-file@^0.1.0":
+ version "0.1.0"
+ resolved "https://registry.yarnpkg.com/@dxcli/manifest-file/-/manifest-file-0.1.0.tgz#acfcc9708936624900e3dcee6b81a086049c2d7e"
dependencies:
debug "^3.1.0"
fs-extra "^5.0.0"
fancy-test "^0.6.4"
lodash "^4.17.4"
-"@dxcli/tslint@^0.1.2":
- version "0.1.2"
- resolved "https://registry.yarnpkg.com/@dxcli/tslint/-/tslint-0.1.2.tgz#943c36b2faef36a3ca2eed760267da0c859c89b3"
+"@dxcli/tslint@^0.1.3":
+ version "0.1.3"
+ resolved "https://registry.yarnpkg.com/@dxcli/tslint/-/tslint-0.1.3.tgz#9a7334bab9fd442e8de3d8dcbec8cc1d8d13333e"
dependencies:
tslint "^5.9.1"
tslint-xo "^0.5.0"
-"@dxcli/version@^0.1.11":
- version "0.1.11"
- resolved "https://registry.yarnpkg.com/@dxcli/version/-/version-0.1.11.tgz#3da33522af0c46ce13da3665e2a26833179af080"
+"@dxcli/version@^0.1.12":
+ version "0.1.12"
+ resolved "https://registry.yarnpkg.com/@dxcli/version/-/version-0.1.12.tgz#1c2093ee3607170dbe61c19939aaf223fa8fae29"
dependencies:
- "@dxcli/command" "^0.2.0"
- "@dxcli/config" "^0.1.28"
- cli-ux "^3.3.7"
+ "@dxcli/command" "^0.2.2"
+ cli-ux "^3.3.8"
"@heroku/linewrap@^1.0.0":
version "1.0.0"
@@ -1076,9 +1085,9 @@ cli-table@^0.3.1:
dependencies:
colors "1.0.3"
-cli-ux@^3.2.1, cli-ux@^3.3.7:
- version "3.3.7"
- resolved "https://registry.yarnpkg.com/cli-ux/-/cli-ux-3.3.7.tgz#523531287fce59726371724a00fd47e1cc6ef64c"
+cli-ux@^3.3.8:
+ version "3.3.8"
+ resolved "https://registry.yarnpkg.com/cli-ux/-/cli-ux-3.3.8.tgz#5df2e8731de5531aaa415dff96a4130f29aaeb01"
dependencies:
"@dxcli/screen" "^0.0.1"
"@heroku/linewrap" "^1.0.0"

fix: add TS parsing for commands