ReviewOS

also looking at this

stacks/ts-css

Merge @stacksjs/ts-css into this repo as packages/toolkit

#27
Merged glennmichael123 wants to merge merge/ts-css-toolkit into main
128 files +9797 -201
packages/toolkit/build.tsadded+27-0
Changes to packages/toolkit/build.ts
@@ -0,0 +1,27 @@
1import { dts } from 'bun-plugin-dtsx'
2
3await Bun.build({
4 splitting: true,
5 minify: true,
6 entrypoints: [
7 'src/index.ts',
8 'src/parse/index.ts',
9 'src/what/index.ts',
10 'src/select/index.ts',
11 'src/optimize/index.ts',
12 ],
13 outdir: './dist',
14 target: 'bun',
15 plugins: [dts()],
16})
17
18// The CLI the `bin` field points at. Nothing built it, so `dist/bin/cli.js`
19// has never existed and every install logged a failed bin link — the command
20// was declared and unavailable. Built separately so it lands under dist/bin/,
21// which is where the manifest already looks for it.
22await Bun.build({
23 minify: true,
24 entrypoints: ['bin/cli.ts'],
25 outdir: './dist/bin',
26 target: 'bun',
27})