Skip to content

Commit 6cec950

Browse files
committed
chore: build tsup with its own source via tsx
Run `src/cli-default.ts` with tsx instead of depending on a published tsup to build tsup. The dts worker path now follows the extension of the running file so it resolves `rollup.ts` when running from source. Also drops the `defineConfig` import in `tsup.config.ts`, which would otherwise resolve to the installed copy of tsup.
1 parent 6705d39 commit 6cec950

4 files changed

Lines changed: 33 additions & 389 deletions

File tree

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
"scripts": {
3131
"dev": "pnpm run build-fast --watch",
32-
"build": "tsup src/cli-*.ts src/index.ts src/rollup.ts --clean --splitting",
32+
"build": "tsx src/cli-default.ts src/cli-*.ts src/index.ts src/rollup.ts --clean --splitting",
3333
"prepublishOnly": "pnpm run build",
3434
"test": "pnpm run build && pnpm run test-only",
3535
"format": "prettier --write .",
@@ -95,7 +95,7 @@
9595
"svelte-preprocess": "^6.0.5",
9696
"terser": "^5.51.2",
9797
"ts-essentials": "^10.2.1",
98-
"tsup": "^8.5.1",
98+
"tsx": "^4.23.15",
9999
"typescript": "^6.0.3",
100100
"vitest": "^5.0.4"
101101
},

0 commit comments

Comments
 (0)