Update libs (#28)

* added prompt context library

* updated libs, except chalk that should not be updated

* updated libs and fixed speed
This commit is contained in:
Arwid Thornström
2025-06-17 10:12:48 +02:00
committed by GitHub
parent 90b9ccc454
commit 5c43d166ba
27 changed files with 2429 additions and 3457 deletions
+6 -9
View File
@@ -1,21 +1,18 @@
#!/usr/bin/env node
/* tslint:disable */
// check if we're running in dev mode
var devMode = require('fs').existsSync(`${__dirname}/../src`)
// or want to "force" running the compiled version with --compiled-build
var wantsCompiled = process.argv.indexOf('--compiled-build') >= 0
// check if we want to run in dev mode explicitly
var wantsDev = process.argv.indexOf('--dev') >= 0;
if (wantsCompiled || !devMode) {
// this runs from the compiled javascript source
require(`${__dirname}/../build/cli`).run(process.argv)
} else {
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)
}