feat: Sync to OSS repo

This commit is contained in:
Wanjohi
2026-08-06 22:13:51 +03:00
parent 46d2a56180
commit 3faac3008f
144 changed files with 27561 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import { Glob, $ } from 'bun';
import pkg from '../package.json';
await $`rm -rf dist`;
const files = new Glob('./src/**/*.{ts,tsx}').scan();
for await (const file of files) {
await Bun.build({
format: 'esm',
outdir: 'dist/esm',
external: ['*'],
root: 'src',
entrypoints: [file]
});
}
await Bun.build({
format: 'esm',
outdir: 'dist/esm',
external: [...Object.keys(pkg.dependencies), ...Object.keys(pkg.peerDependencies)],
root: 'src',
entrypoints: ['./src/ui/base.tsx']
});
await $`tsc --outDir dist/types --declaration --emitDeclarationOnly --declarationMap`;