also looking at this
Merge @stacksjs/ts-css into this repo as packages/toolkit
#27
128 files
+9797
-201
| @@ -0,0 +1,27 @@ | ||
| 1 | import { dts } from 'bun-plugin-dtsx' | |
| 2 | ||
| 3 | await 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. | |
| 22 | await Bun.build({ | |
| 23 | minify: true, | |
| 24 | entrypoints: ['bin/cli.ts'], | |
| 25 | outdir: './dist/bin', | |
| 26 | target: 'bun', | |
| 27 | }) | |