Files
router/bun.config.ts
abearxiong a53e8c0bc3 refactor: update router import path and add random ID utility
- Changed the import path for router types from '@kevisual/router' to './route.ts' in src/router-define.ts.
- Added a new lock file (bun.lock) to manage dependencies.
- Introduced a new utility function in src/utils/random.ts to generate random IDs using the nanoid library.
2026-02-17 20:35:16 +08:00

16 lines
672 B
TypeScript

import { buildWithBun } from '@kevisual/code-builder';
await buildWithBun({ naming: 'app', entry: 'agent/main.ts', dts: true });
await buildWithBun({ naming: 'router', entry: 'src/index.ts', dts: true });
await buildWithBun({ naming: 'router-browser', entry: 'src/app-browser.ts', target: 'browser', dts: true });
await buildWithBun({ naming: 'router-define', entry: 'src/router-define.ts', target: 'browser', dts: true });
await buildWithBun({ naming: 'router-simple', entry: 'src/router-simple.ts', dts: true });
await buildWithBun({ naming: 'opencode', entry: 'src/opencode.ts', dts: true });
await buildWithBun({ naming: 'ws', entry: 'src/ws.ts', dts: true });