chore: 🔨 修改package.json内容

This commit is contained in:
Bunny 2024-05-11 23:57:31 +08:00
parent 36240d1cba
commit 59d4c40ee9
5 changed files with 17 additions and 8 deletions

1
.eslintcache Normal file

File diff suppressed because one or more lines are too long

View File

@ -42,9 +42,9 @@ const __APP_INFO__ = {
};
/** 处理环境变量 */
const wrapperEnv = (envConf: Recordable): ViteEnv => {
const wrapperEnv = (envConf: Recordable) => {
// 默认值
const ret: ViteEnv = {
const ret: any = {
VITE_PORT: 6261,
VITE_PUBLIC_PATH: "",
VITE_ROUTER_HISTORY: "",
@ -73,7 +73,7 @@ const wrapperEnv = (envConf: Recordable): ViteEnv => {
const fileListTotal: number[] = [];
/** 获取指定文件夹中所有文件的总大小 */
const getPackageSize = options => {
const getPackageSize = (options: any) => {
const { folder = "dist", callback, format = true } = options;
readdir(folder, (err, files: string[]) => {
if (err) throw err;

View File

@ -14,13 +14,13 @@
"esm"
],
"description": "Bunny-Admin后台管理系统",
"homepage": "https://gitee.com/BunnyBoss/bunny-admin",
"homepage": "https://gitee.com/BunnyBoss/vite_ts_auto",
"repository": {
"type": "git",
"url": "https://gitee.com/BunnyBoss/bunny-admin"
"url": "https://gitee.com/BunnyBoss/vite_ts_auto"
},
"bugs": {
"url": "https://gitee.com/BunnyBoss/bunny-admin/issues"
"url": "https://gitee.com/BunnyBoss/vite_ts_auto/issues"
},
"license": "MIT",
"author": {
@ -45,6 +45,7 @@
},
"dependencies": {
"@pureadmin/utils": "^2.4.7",
"@types/gradient-string": "^1.1.6",
"@unocss/preset-uno": "^0.60.0",
"@unocss/vite": "^0.60.0",
"@vitejs/plugin-vue-jsx": "^3.1.0",

View File

@ -1,5 +1,5 @@
import { resolve } from "path";
import { type ConfigEnv, type UserConfig, defineConfig, loadEnv } from "vite";
import { type ConfigEnv, defineConfig, loadEnv, type UserConfig } from "vite";
import { createVitePlugins } from "./build/plugins";
import { wrapperEnv } from "./src/utils/getEnv";

View File

@ -1786,6 +1786,13 @@
"@types/qs" "*"
"@types/serve-static" "*"
"@types/gradient-string@^1.1.6":
version "1.1.6"
resolved "https://registry.npmmirror.com/@types/gradient-string/-/gradient-string-1.1.6.tgz#ce189baa38441e1a97eb376a2b140f7793720396"
integrity sha512-LkaYxluY4G5wR1M4AKQUal2q61Di1yVVCw42ImFTuaIoQVgmV0WP1xUaLB8zwb47mp82vWTpePI9JmrjEnJ7nQ==
dependencies:
"@types/tinycolor2" "*"
"@types/html-minifier-terser@^6.0.0":
version "6.1.0"
resolved "https://registry.npmmirror.com/@types/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz#4fc33a00c1d0c16987b1a20cf92d20614c55ac35"
@ -1905,7 +1912,7 @@
dependencies:
"@types/node" "*"
"@types/tinycolor2@^1.4.0":
"@types/tinycolor2@*", "@types/tinycolor2@^1.4.0":
version "1.4.6"
resolved "https://registry.npmmirror.com/@types/tinycolor2/-/tinycolor2-1.4.6.tgz#670cbc0caf4e58dd61d1e3a6f26386e473087f06"
integrity sha512-iEN8J0BoMnsWBqjVbWH/c0G0Hh7O21lpR2/+PrvAVgWdzL7eexIFm4JN/Wn10PTcmNdtS6U67r499mlWMXOxNw==