Update package.json

This commit is contained in:
awkj 2022-01-31 19:12:05 +08:00
parent 545e4159f5
commit 32fd67dbbf
3 changed files with 357 additions and 2132 deletions

2477
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -10,16 +10,14 @@
"build": "tsc --project src/renderer/tsconfig.json && node scripts/build.mjs && electron-builder"
},
"engines": {
"node": ">=14.17.0"
},
"dependencies": {
"electron-store": "^8.0.1"
"node": ">=16.9.1"
},
"dependencies": {},
"devDependencies": {
"electron-store": "^8.0.1",
"@types/react": "^17.0.38",
"@types/react-dom": "^17.0.11",
"@vitejs/plugin-react": "^1.1.4",
"antd": "^4.18.5",
"electron": "16.0.8",
"electron-builder": "^22.14.5",
"react": "^17.0.2",
@ -33,4 +31,4 @@
"HOST": "127.0.0.1",
"PORT": 3344
}
}
}

View File

@ -3,10 +3,8 @@ process.env.NODE_ENV = 'production'
import { dirname, join } from 'path'
import { fileURLToPath } from 'url'
import { build } from 'vite'
import chalk from 'chalk'
const __dirname = dirname(fileURLToPath(import.meta.url))
const TAG = chalk.bgBlue(' build.mjs ')
/**
* @type {Record<string, import('vite').InlineConfig>}