更新 CLI 版本至 0.1.33,重构构建配置,添加新的路由和中间件,增强身份验证支持

This commit is contained in:
xiongxiao
2026-03-24 17:38:37 +08:00
committed by cnb
parent b05f059aea
commit 4e2ae49372
27 changed files with 125 additions and 97 deletions

View File

@@ -1,19 +1,5 @@
// @ts-check
// https://bun.sh/docs/bundler
// @ts-ignore
import pkg from './package.json';
// bun run src/index.ts --
const external = ['bun'];
await Bun.build({
target: 'node',
format: 'esm',
entrypoints: ['./src/oldindex.ts'],
outdir: './dist',
naming: {
entry: 'envision.js',
},
external: external,
define: {
ENVISION_VERSION: JSON.stringify(pkg.version),
},
});
import { buildWithBun } from '@kevisual/code-builder';
await buildWithBun({ naming: 'envision', entry: 'src/oldindex.ts',});
await buildWithBun({ naming: 'cli', entry: 'src/cli.ts' });