Comparing version 0.0.8 to 0.1.0
@@ -181,3 +181,3 @@ /// <reference path="../dts/command.d.ts" /> | ||
if (shouldExit) | ||
process_1.exit(0); | ||
(0, process_1.exit)(0); | ||
} | ||
@@ -191,3 +191,3 @@ outputVersion({ exit: shouldExit = true } = {}) { | ||
if (shouldExit) | ||
process_1.exit(0); | ||
(0, process_1.exit)(0); | ||
} | ||
@@ -198,3 +198,3 @@ checkRequiredArgs() { | ||
console.error(`error: missing required args for command \`${this.raw}\``); | ||
process_1.exit(1); | ||
(0, process_1.exit)(1); | ||
} | ||
@@ -215,3 +215,3 @@ } | ||
console.error(`error: Unknown option \`${name.length > 1 ? `--${name}` : `-${name}`}\``); | ||
process_1.exit(1); | ||
(0, process_1.exit)(1); | ||
} | ||
@@ -234,3 +234,3 @@ } | ||
console.error(`error: option \`${option.raw}\` value is missing`); | ||
process_1.exit(1); | ||
(0, process_1.exit)(1); | ||
} | ||
@@ -237,0 +237,0 @@ } |
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PLATFORM_INFO = exports.EOL = exports.DEFAULT_ARGS = exports.exit = void 0; | ||
exports.exit = (code) => { | ||
const exit = (code) => { | ||
return process.exit(code); | ||
}; | ||
exports.exit = exit; | ||
exports.DEFAULT_ARGS = process.argv.slice(0); | ||
exports.EOL = '\n'; | ||
exports.PLATFORM_INFO = `${process.platform}-${process.arch} fibjs-${process.version}`; |
@@ -63,3 +63,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.padRight = padRight; | ||
exports.camelCase = (input) => { | ||
const camelCase = (input) => { | ||
return input.replace(/([a-z])-([a-z])/g, (_, p1, p2) => { | ||
@@ -69,2 +69,3 @@ return p1 + p2.toUpperCase(); | ||
}; | ||
exports.camelCase = camelCase; | ||
function setDotProp(obj, keys, val) { | ||
@@ -71,0 +72,0 @@ let i = 0; |
{ | ||
"name": "@fxjs/cli", | ||
"version": "0.0.8", | ||
"version": "0.1.0", | ||
"description": "", | ||
@@ -8,3 +8,3 @@ "types": "typings/index.d.ts", | ||
"scripts": { | ||
"build": "ftsc src/* --outDir ./lib", | ||
"build": "rimraf typings lib && ftsc src/* --outDir ./lib", | ||
"test": "fibjs test", | ||
@@ -15,19 +15,15 @@ "ci": "npm run build && npm run test", | ||
"files": [ | ||
"dts", | ||
"typings", | ||
"lib", | ||
"type.d.ts" | ||
"dts", | ||
"typings", | ||
"lib", | ||
"type.d.ts" | ||
], | ||
"ci": { | ||
"type": "travis, appveyor", | ||
"type": "actions", | ||
"version": [ | ||
"0.26.0", | ||
"0.26.1", | ||
"0.27.0", | ||
"0.28.0", | ||
"0.29.0", | ||
"0.30.0", | ||
"0.31.0", | ||
"0.32.0", | ||
"0.32.1" | ||
"0.32.1", | ||
"0.33.0", | ||
"0.34.0", | ||
"0.35.0" | ||
] | ||
@@ -45,7 +41,8 @@ }, | ||
"devDependencies": { | ||
"@fibjs/ci": "^2.3.0", | ||
"@fibjs/ci": "^2.6.0", | ||
"@fibjs/types": "^0.27.0", | ||
"@types/mri": "^1.1.0", | ||
"fib-typify": "^0.8.2" | ||
"fib-typify": "^0.11.3", | ||
"rimraf": "^3.0.2" | ||
} | ||
} |
48727
959
5