mirror of
https://github.com/jakejarvis/rdapper.git
synced 2026-09-22 23:05:31 -04:00
- Delegate `exports` map generation to tsdown (`exports: true`) and simplify `package.json` to a bare `"." : "./dist/index.mjs"` entry plus `"./package.json"`; drop redundant `main`/`module` fields - Add `sideEffects: false` to `package.json` so bundlers can tree-shake the package - Enable `clean: true` and `failOnWarn: true` in `tsdown.config.ts` for a cleaner build and stricter warning enforcement - Suppress the TypeScript 7.0 experimental-API warning emitted by tsdown - Bump `typescript` dev dependency to `^7.0.2`
15 lines
358 B
TypeScript
15 lines
358 B
TypeScript
import { defineConfig } from "tsdown";
|
|
|
|
export default defineConfig({
|
|
platform: "node",
|
|
target: "node20",
|
|
entry: ["src/index.ts"],
|
|
clean: true,
|
|
dts: true,
|
|
exports: true,
|
|
nodeProtocol: "strip",
|
|
deps: { neverBundle: ["tldts"] },
|
|
failOnWarn: true,
|
|
suppressWarnings: ["TypeScript 7.0 does not yet have a stable API and is experimental"],
|
|
});
|