pack: setting environment variables with cross-env (#137)

This commit is contained in:
leejooy96 committed 2023-08-08 19:10:13 +09:00
1 parent f8acc90226
commit e8a68baa7e
2 files changed
+21 -1

No files matched your search

+19
View File
@@ -22,6 +22,7 @@
"@typescript-eslint/parser": "^6.2.1",
"@vitejs/plugin-vue": "^4.2.3",
"@vitejs/plugin-vue-jsx": "^3.0.1",
"cross-env": "^7.0.3",
"electron": "^25.4.0",
"electron-builder": "^24.6.3",
"eslint": "^8.46.0",
@@ -3055,6 +3056,24 @@
"buffer": "^5.1.0"
}
},
"node_modules/cross-env": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz",
"integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==",
"dev": true,
"dependencies": {
"cross-spawn": "^7.0.1"
},
"bin": {
"cross-env": "src/bin/cross-env.js",
"cross-env-shell": "src/bin/cross-env-shell.js"
},
"engines": {
"node": ">=10.14",
"npm": ">=6",
"yarn": ">=1"
}
},
"node_modules/cross-spawn": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
+2 -1
View File
@@ -15,7 +15,7 @@
"url": "https://github.com/jooy2/vutron/issues"
},
"scripts": {
"dev": "ELECTRON_ENABLE_LOGGING=true vite",
"dev": "cross-env ELECTRON_ENABLE_LOGGING=true vite",
"dev:debug": "vite -d",
"dev:debug:force": "vite -d --force",
"build": "npm run build:pre && electron-builder -wml",
@@ -47,6 +47,7 @@
"@typescript-eslint/parser": "^6.2.1",
"@vitejs/plugin-vue": "^4.2.3",
"@vitejs/plugin-vue-jsx": "^3.0.1",
"cross-env": "^7.0.3",
"electron": "^25.4.0",
"electron-builder": "^24.6.3",
"eslint": "^8.46.0",