@cosyte/tsup-config
v0.0.1
Published
Shared tsup build config (dual ESM + CJS, ES2023) for @cosyte/* libraries.
Readme
@cosyte/tsup-config
Shared tsup build config for the @cosyte/* libraries: dual ESM + CJS
with .d.ts, ES2023 target, Node platform, treeshake on, splitting off, .mjs / .cjs
out-extensions, and sourcemaps. Pair it with @arethetypeswrong/cli (attw) as a publish gate.
Install
pnpm add -D @cosyte/tsup-config tsuptsup is a peer dependency.
Use
tsup.config.ts:
import { cosyteTsup } from "@cosyte/tsup-config";
export default cosyteTsup({ entry: ["src/index.ts"] });Pass any tsup Options to override the baseline (e.g. multiple entry points). Everything else is the
enforced standard.
Part of cosyte/config — one enforced toolchain for the @cosyte/*
suite.
