refactor: better export process.env.XXX

This commit is contained in:
Leo Wang(草鞋没号) committed 2024-04-18 21:02:54 +08:00
1 parent 6cd6bb5353
commit 6d0b65c5c4
2 files changed
+37 -29

No files matched your search

+15 -3
View File
@@ -3,9 +3,21 @@
declare namespace NodeJS {
interface ProcessEnv {
VSCODE_DEBUG?: 'true'
DIST_ELECTRON: string
DIST: string
/**
* The built directory structure
*
* ```tree
* ├─┬ dist-electron
* │ ├─┬ main
* │ │ └── index.js > Electron-Main
* │ └─┬ preload
* │ └── index.mjs > Preload-Scripts
* ├─┬ dist
* │ └── index.html > Electron-Renderer
* ```
*/
APP_ROOT: string
/** /dist/ or /public/ */
VITE_PUBLIC: string
}
}
}