chatccc 0.1.4 → 0.1.5
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/chatccc.mjs +2 -1
- package/package.json +1 -1
package/bin/chatccc.mjs
CHANGED
|
@@ -5,7 +5,8 @@ import { fileURLToPath } from "node:url";
|
|
|
5
5
|
import { dirname, join } from "node:path";
|
|
6
6
|
|
|
7
7
|
const require = createRequire(import.meta.url);
|
|
8
|
-
|
|
8
|
+
// bin/ 的上一级才是 chatccc 包根;勿对 new URL("..") 再 dirname,否则会退到 node_modules
|
|
9
|
+
const pkgRoot = join(dirname(fileURLToPath(import.meta.url)), "..");
|
|
9
10
|
const indexTs = join(pkgRoot, "src", "index.ts");
|
|
10
11
|
const tsxCli = require.resolve("tsx/cli");
|
|
11
12
|
|