Skip to content

Commit 9b71ca1

Browse files
authored
chore: add tsup.config.ts and watch command (#7)
1 parent 4ad68d0 commit 9b71ca1

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"scripts": {
66
"test": "npm run test:e2e",
77
"test:e2e": "npm run test:e2e -w example",
8-
"build": "tsup --dts --format esm --external ../server,'virtual:remix/server-build',hono,@remix-run/cloudflare,vite src/vite-plugin.ts src/dev.ts src/cloudflare-pages.ts",
8+
"build": "tsup",
9+
"watch": "tsup --watch",
910
"lint": "eslint src example/app example/server",
1011
"lint:fix": "eslint src example/app example/server --fix",
1112
"publint": "publint",
@@ -61,4 +62,4 @@
6162
"@remix-run/cloudflare": "^2.11.2",
6263
"remix-hono": "^0.0.16"
6364
}
64-
}
65+
}

tsup.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { defineConfig } from 'tsup'
2+
3+
export default defineConfig({
4+
entry: ['src/vite-plugin.ts', 'src/dev.ts', 'src/cloudflare-pages.ts'],
5+
external: ['../server', 'virtual:remix/server-build', 'hono', '@remix-run/cloudflare', 'vite'],
6+
format: 'esm',
7+
dts: true,
8+
})

0 commit comments

Comments
 (0)