Skip to content

Commit 9754203

Browse files
committed
ci: replace tsup, which is no longer maintained, with tsdown
1 parent 17bc8f6 commit 9754203

File tree

4 files changed

+370
-450
lines changed

4 files changed

+370
-450
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@
3030
"@changesets/cli": "^2.29.7",
3131
"@types/node": "^24.7.2",
3232
"glob": "^11.0.3",
33+
"publint": "^0.3.14",
3334
"rimraf": "^6.0.1",
34-
"tsup": "^8.5.0",
35+
"tsdown": "^0.15.7",
3536
"tsx": "^4.20.6",
3637
"typescript": "^5.9.3"
3738
},

packages/_template/package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "https://json.schemastore.org/package.json",
23
"name": "package-template",
34
"private": "true",
45
"version": "0.0.0",
@@ -12,20 +13,20 @@
1213
"url": "https://github.com/amandaguthrie/template-pnpm-typescript-monorepo.git",
1314
"directory": "packages/_template"
1415
},
15-
"license": "MIT",
16+
"license": "UNLICENSED",
1617
"type": "module",
1718
"main": "dist/index.cjs",
1819
"module": "dist/index.js",
19-
"types": "dist/index.d.cts",
2020
"exports": {
2121
".": {
22-
"types": "./dist/index.d.cts",
23-
"source": "./src/index.ts",
2422
"import": {
2523
"types": "./dist/index.d.ts",
2624
"default": "./dist/index.js"
2725
},
28-
"require": "./dist/index.cjs"
26+
"required": {
27+
"types": "./dist/index.d.cts",
28+
"default": "./dist/index.cjs"
29+
}
2930
},
3031
"./package.json": "./package.json"
3132
},
@@ -34,8 +35,8 @@
3435
],
3536
"side-effects": false,
3637
"scripts": {
37-
"build": "tsup --entry src/index.ts --entry src/index.ts --format=esm,cjs --dts",
38-
"build-fast": "tsup --entry src/index.ts --entry src/index.ts --format=esm,cjs --no-dts",
38+
"build": "tsdown",
39+
"build-fast": "tsdown --no-dts",
3940
"dev": "pnpm build-fast --watch",
4041
"test": "node --import tsx tests/test.mts"
4142
},
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { defineConfig } from 'tsdown';
2+
3+
export default defineConfig({
4+
entry: ['src/index.ts'],
5+
format: ['esm', 'cjs'],
6+
dts: true,
7+
clean: true,
8+
shims: true,
9+
minify: true,
10+
publint: true,
11+
});

0 commit comments

Comments
 (0)