更新 CLI 版本至 0.1.33,重构构建配置,添加新的路由和中间件,增强身份验证支持
This commit is contained in:
@@ -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' });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user