UNPKG

@naiable/rollup-config

Version:

Use rollup like tsup, but opinionated my way.

10 lines (7 loc) 299 B
import child_process from "node:child_process"; import process from "node:process"; const args = process.argv.slice(2); child_process.spawnSync("npx", args.length === 0 ? ["rollup", "-c", "rollup.config.ts", "--configPlugin", "@rollup/plugin-swc"] : args, { shell: true, stdio: "inherit", });