feat: 自动化version打包

This commit is contained in:
手瓜一十雪
2025-11-13 18:31:55 +08:00
parent 7b65fa581a
commit 5622f5a04a
9 changed files with 439 additions and 2 deletions

View File

@@ -23,7 +23,8 @@
"napcat-qrcode": "workspace:*"
},
"devDependencies": {
"@types/node": "^22.0.1"
"@types/node": "^22.0.1",
"napcat-vite": "workspace:*"
},
"engines": {
"node": ">=18.0.0"

View File

@@ -3,6 +3,8 @@ import { defineConfig, PluginOption, UserConfig } from 'vite';
import path, { resolve } from 'path';
import nodeResolve from '@rollup/plugin-node-resolve';
import { builtinModules } from 'module';
import napcatVersion from "napcat-vite/vite-plugin-version.js";
//依赖排除
const external = [
'silk-wasm',
@@ -21,6 +23,7 @@ const ShellBaseConfigPlugin: PluginOption[] = [
],
}),
nodeResolve(),
napcatVersion(),
];
const ShellBaseConfig = () =>
defineConfig({