mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
fix(cli): resolve ESM module resolution for tsx dev mode
- Remove "type": "module" from apps/cli/package.json to avoid ESM/CJS interop issues with workspace packages in tsx dev mode - Configure tsup to output .mjs files (always treated as ESM by Node.js) - Rename bin entry from chatlab.js to chatlab.mjs - Change chatlab web default port to 3100 (serve keeps 3110) - Fix vite plugin: use pnpm instead of npx for tsx invocation
This commit is contained in:
1 parent
e363e8bd75
commit
0aa30359ab
5 files changed
+8
-8
No files matched your search
@@ -1,2 +0,0 @@
|
||||
#!/usr/bin/env node
|
||||
import('../dist/cli.js').then((m) => m.run())
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env node
|
||||
import('../dist/cli.mjs').then((m) => m.run())
|
||||
Reference in new issue
Block a user