Skip to content

Commit 0c93bdf

Browse files
committed
tsdown
1 parent b3ec361 commit 0c93bdf

File tree

6 files changed

+148
-167
lines changed

6 files changed

+148
-167
lines changed

bun.lock

Lines changed: 116 additions & 136 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,10 @@
1717
},
1818
"license": "Apache-2.0",
1919
"sideEffects": false,
20-
"exports": {
21-
".": {
22-
"types": "./dist/index.d.ts",
23-
"import": "./dist/index.js",
24-
"module": "./dist/index.js",
25-
"require": "./dist/index.cjs"
26-
}
27-
},
28-
"main": "dist/index.js",
29-
"module": "dist/index.js",
30-
"types": "dist/index.d.ts",
31-
"files": [
32-
"dist/**/*"
33-
],
3420
"scripts": {
3521
"brl": "sh tooling/brl.sh",
36-
"build": "tsup",
37-
"build:watch": "tsup:watch",
22+
"build": "tsdown --config tooling/tsdown.config.ts",
23+
"build:watch": "tsdown --config tooling/tsdown.config.ts --watch",
3824
"check": "bun lint && bun run build && bun typecheck",
3925
"lint": "biome check",
4026
"lint:fix": "biome check --write",
@@ -59,7 +45,7 @@
5945
"better-auth": "1.3.34",
6046
"convex": "1.29.3",
6147
"lefthook": "2.0.4",
62-
"tsup": "8.5.1",
48+
"tsdown": "0.16.7",
6349
"typescript": "5.9.3",
6450
"ultracite": "6.3.6"
6551
},
@@ -71,5 +57,12 @@
7157
"packageManager": "[email protected]",
7258
"publishConfig": {
7359
"access": "public"
60+
},
61+
"main": "./dist/index.js",
62+
"module": "./dist/index.js",
63+
"types": "./dist/index.d.ts",
64+
"exports": {
65+
".": "./dist/index.js",
66+
"./package.json": "./package.json"
7467
}
7568
}

tooling/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"type": "module"
3+
}

tooling/tsconfig.build.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"declaration": true,
5+
"declarationMap": false,
6+
"emitDeclarationOnly": true,
7+
"noEmit": false
8+
}
9+
}

tooling/tsdown.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { defineConfig } from 'tsdown';
2+
3+
export default defineConfig({
4+
target: 'esnext',
5+
tsconfig: './tooling/tsconfig.build.json',
6+
exports: true,
7+
sourcemap: true,
8+
dts: true,
9+
outExtensions: () => ({ js: '.js', dts: '.d.ts' }),
10+
});

tsup.config.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)