22 lines
500 B
TypeScript
Executable File
22 lines
500 B
TypeScript
Executable File
#!/usr/bin/env bun
|
|
import { type Options, build } from "tsup";
|
|
import tsupConfig from "../tsup.config";
|
|
import { pick } from "lodash";
|
|
import pkg from "../package.json" with { type: "json" };
|
|
|
|
await build(tsupConfig as Options);
|
|
await Bun.write(
|
|
"dist/package.json",
|
|
JSON.stringify(
|
|
pick(pkg, ["name", "version", "license", "dependencies", "author"]),
|
|
null,
|
|
2
|
|
)
|
|
);
|
|
|
|
await Bun.write(
|
|
`dist/base.d.ts`,
|
|
`/**\n * \`@tailwind base\` component.\n */\nexport {};`
|
|
);
|
|
process.exit(0);
|