We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8060fc9 commit 5e2395fCopy full SHA for 5e2395f
2 files changed
package.json
@@ -13,7 +13,7 @@
13
],
14
"scripts": {
15
"go": "bun run build && ./install-local.sh && echo \"COMPLETED\"",
16
- "build": "tsup src/index.ts --format esm,cjs --dts",
+ "build": "tsup",
17
"dev": "bun src/index.ts",
18
"typecheck": "tsc --noEmit",
19
"lint": "eslint .",
tsup.config.ts
@@ -0,0 +1,18 @@
1
+import { defineConfig } from 'tsup';
2
+
3
+export default defineConfig({
4
+ entry: ['src/index.ts'],
5
+ format: ['esm', 'cjs'],
6
+ dts: true,
7
+ splitting: true,
8
+ clean: true,
9
+ target: 'node18',
10
+ // Keep these external to avoid bundling issues
11
+ external: [
12
+ 'react-devtools-core',
+ ],
+ // Ensure ink-spinner uses the same React as ink
+ noExternal: [
+ 'ink-spinner',
+});
0 commit comments