We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 844e2ec commit 686da44Copy full SHA for 686da44
2 files changed
package.json
@@ -27,8 +27,8 @@
27
"access": "public"
28
},
29
"scripts": {
30
- "build": "tsup --format esm,cjs",
31
- "build:watch": "tsup --watch --format esm,cjs",
+ "build": "tsup",
+ "build:watch": "tsup --watch",
32
"test": "vitest run",
33
"test:watch": "vitest",
34
"prepublishOnly": "npm run build"
tsup.config.ts
@@ -6,7 +6,7 @@ import { defineConfig } from 'tsup'
6
7
export default defineConfig({
8
entry: ['src/index.ts', 'src/index-workers.ts'],
9
- format: ['esm'],
+ format: ['esm', 'cjs'],
10
external: ['cloudflare:workers'],
11
dts: true,
12
sourcemap: true,
0 commit comments