also looking at this
fix: emit a real library build (dist/index.js + ./stx) so the package is importable
#124
6 files
+72
-13
| @@ -0,0 +1,17 @@ | ||
| 1 | #!/usr/bin/env bun | |
| 2 | /** | |
| 3 | * Static dashboard SITE build (deploy artifact for Netlify / Vercel / S3) → | |
| 4 | * dist-site/. This is NOT the npm package output — the importable library is | |
| 5 | * built by build.ts (`bun run build`) into dist/. | |
| 6 | * | |
| 7 | * Run with `bun run build:site`. | |
| 8 | */ | |
| 9 | import { generateStaticSite } from '@stacksjs/stx/ssg' | |
| 10 | ||
| 11 | await generateStaticSite({ | |
| 12 | pagesDir: 'pages', | |
| 13 | outputDir: 'dist-site', | |
| 14 | publicDir: 'public', | |
| 15 | sitemap: true, | |
| 16 | cleanOutput: true, | |
| 17 | }) | |