feat: 自动化version打包
This commit is contained in:
1 parent
7b65fa581a
commit
5622f5a04a
9 files changed
+439
-2
No files matched your search
@@ -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