mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 13:05:09 +00:00
feat: 自动化version打包
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user