Skip to content

Commit 8ca1023

Browse files
committed
tsup -> tsdown
Signed-off-by: Sora Morimoto <[email protected]>
1 parent 1cb1c9c commit 8ca1023

File tree

4 files changed

+814
-660
lines changed

4 files changed

+814
-660
lines changed

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@
3535
"templates"
3636
],
3737
"scripts": {
38-
"build": "tsup",
38+
"build": "tsdown",
3939
"cli:help": "node index.js -h",
4040
"cli:json": "node index.js -r -d -p ./swagger-test-cli.json -n swagger-test-cli.ts",
4141
"cli:yaml": "node index.js -r -d -p ./swagger-test-cli.yaml -n swagger-test-cli.ts",
4242
"format": "biome format --write .",
4343
"format:check": "biome format .",
4444
"lint": "biome check",
45-
"prepack": "tsup",
45+
"prepack": "tsdown",
4646
"test": "vitest run",
4747
"typedoc": "typedoc"
4848
},
@@ -65,7 +65,6 @@
6565
"@biomejs/biome": "2.0.0-beta.2",
6666
"@changesets/changelog-github": "0.5.1",
6767
"@changesets/cli": "2.29.2",
68-
"@microsoft/api-extractor": "7.52.7",
6968
"@tsconfig/node18": "18.2.4",
7069
"@tsconfig/strictest": "2.0.5",
7170
"@types/js-yaml": "4.0.9",
@@ -74,7 +73,7 @@
7473
"@types/swagger2openapi": "7.0.4",
7574
"axios": "1.9.0",
7675
"openapi-types": "12.1.3",
77-
"tsup": "8.4.0",
76+
"tsdown": "0.10.2",
7877
"typedoc": "0.28.3",
7978
"vitest": "3.1.2"
8079
},

tsdown.config.ts

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: {
5+
lib: "src/index.ts",
6+
cli: "index.ts",
7+
},
8+
format: ["esm", "cjs"],
9+
sourcemap: true,
10+
target: "node18",
11+
});

tsup.config.ts

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

0 commit comments

Comments
 (0)