chore: UPDATE
This commit is contained in:
parent
2dd8f3bf5a
commit
9409b56c0d
|
@ -4,10 +4,10 @@
|
||||||
"description": "Electron React Vite boilerplate.",
|
"description": "Electron React Vite boilerplate.",
|
||||||
"author": "草鞋没号 <308487730@qq.com>",
|
"author": "草鞋没号 <308487730@qq.com>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "dist/main/index.js",
|
"main": "dist/main/index.cjs",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "node -r ts-node/register scripts/dev.ts",
|
"dev": "node scripts/watch.mjs",
|
||||||
"build": "node -r ts-node/register scripts/build.ts"
|
"build": "node scripts/build.mjs"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14.17.0"
|
"node": ">=14.17.0"
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
"root/*": ["./*"],
|
"root/*": ["./*"],
|
||||||
"@/*": ["./react-ts/*"]
|
"@/*": ["src/react-ts/*"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -3,5 +3,8 @@ declare namespace NodeJS {
|
||||||
interface ProcessEnv {
|
interface ProcessEnv {
|
||||||
NODE_ENV: 'development' | 'production'
|
NODE_ENV: 'development' | 'production'
|
||||||
readonly PORT: string
|
readonly PORT: string
|
||||||
|
readonly HOST: string
|
||||||
|
readonly PORT: number
|
||||||
|
readonly PORT_WS: number
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue