add check port and change process

This commit is contained in:
2025-03-10 12:14:12 +08:00
parent b966ea68f2
commit 2e1cf531cf
13 changed files with 307 additions and 204 deletions

View File

@@ -8,7 +8,7 @@ import replace from '@rollup/plugin-replace';
import pkgs from './package.json' with {type: 'json'};
const isDev = process.env.NODE_ENV === 'development';
const input = isDev ? './src/dev.ts' : './src/index.ts';
const input = isDev ? './src/dev.ts' : './src/main.ts';
/**
* @type {import('rollup').RollupOptions}
*/
@@ -64,8 +64,8 @@ const config = {
json(),
],
external: [
/@kevisual\/router(\/.*)?/, //, // 路由
/@kevisual\/use-config(\/.*)?/, //
// /@kevisual\/router(\/.*)?/, //, // 路由
// /@kevisual\/use-config(\/.*)?/, //
// 'sequelize', // 数据库 orm
// 'ioredis', // redis