* added prompt context library * updated libs, except chalk that should not be updated * updated libs and fixed speed
19 lines
580 B
JavaScript
Executable File
19 lines
580 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
/* tslint:disable */
|
|
// check if we want to run in dev mode explicitly
|
|
var wantsDev = process.argv.indexOf('--dev') >= 0;
|
|
|
|
if (wantsDev) {
|
|
// this runs from the typescript source (for dev only)
|
|
// hook into ts-node so we can run typescript on the fly
|
|
require('ts-node').register({ project: `${__dirname}/../tsconfig.json` })
|
|
// run the CLI with the current process arguments
|
|
require(`${__dirname}/../src/cli`).run(process.argv)
|
|
} else {
|
|
// this runs from the compiled javascript source
|
|
require(`${__dirname}/../build/cli`).run(process.argv)
|
|
}
|
|
|
|
|