chore: UPDATE

This commit is contained in:
草鞋没号 2021-11-08 19:17:58 +08:00
parent 2dd8f3bf5a
commit 9409b56c0d
3 changed files with 7 additions and 4 deletions

View File

@ -4,10 +4,10 @@
"description": "Electron React Vite boilerplate.",
"author": "草鞋没号 <308487730@qq.com>",
"license": "MIT",
"main": "dist/main/index.js",
"main": "dist/main/index.cjs",
"scripts": {
"dev": "node -r ts-node/register scripts/dev.ts",
"build": "node -r ts-node/register scripts/build.ts"
"dev": "node scripts/watch.mjs",
"build": "node scripts/build.mjs"
},
"engines": {
"node": ">=14.17.0"

View File

@ -4,7 +4,7 @@
"baseUrl": ".",
"paths": {
"root/*": ["./*"],
"@/*": ["./react-ts/*"]
"@/*": ["src/react-ts/*"]
}
}
}

3
types.d.ts vendored
View File

@ -3,5 +3,8 @@ declare namespace NodeJS {
interface ProcessEnv {
NODE_ENV: 'development' | 'production'
readonly PORT: string
readonly HOST: string
readonly PORT: number
readonly PORT_WS: number
}
}