@exreve/exk 1.0.58 → 1.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/exk +5 -3
- package/dist/ttc-cli.tar.gz +0 -0
- package/package.json +1 -1
package/bin/exk
CHANGED
|
@@ -4,14 +4,16 @@
|
|
|
4
4
|
|
|
5
5
|
import { resolve, dirname } from 'path'
|
|
6
6
|
import { fileURLToPath } from 'url'
|
|
7
|
+
import { existsSync } from 'fs'
|
|
7
8
|
|
|
8
9
|
const __filename = fileURLToPath(import.meta.url)
|
|
9
10
|
const __dirname = dirname(__filename)
|
|
10
11
|
|
|
11
12
|
const pkgDir = resolve(__dirname, '..')
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
// tsc outputs to dist/cli/ (see CLAUDE.md "tsc output goes to dist/cli/")
|
|
14
|
+
const entryPoint = existsSync(resolve(pkgDir, 'dist', 'cli', 'index.js'))
|
|
15
|
+
? resolve(pkgDir, 'dist', 'cli', 'index.js')
|
|
16
|
+
: resolve(pkgDir, 'dist', 'index.js')
|
|
15
17
|
|
|
16
18
|
// Import and run the compiled CLI
|
|
17
19
|
import(entryPoint).catch(err => {
|
package/dist/ttc-cli.tar.gz
CHANGED
|
Binary file
|