diff --git a/package.json b/package.json index dcce17b560..0a9afc60d1 100644 --- a/package.json +++ b/package.json @@ -15,21 +15,20 @@ "dev-run": "nodemon --watch out/main.* --exec \"electron --inspect .\" $@", "dev:main": "env DEBUG=true yarn compile:main --watch $@", "dev:renderer": "env DEBUG=true yarn compile:renderer --watch $@", - "compile": "concurrently \"yarn i18n:compile\" \"yarn compile:main -p\" \"yarn compile:renderer -p\"", - "compile:main": "webpack --progress --config webpack.main.ts", - "compile:renderer": "webpack --progress --config webpack.renderer.ts", - "compile:dll": "webpack --config webpack.dll.ts", + "compile": "env NODE_ENV=production concurrently yarn:compile:*", + "compile:main": "webpack --config webpack.main.ts", + "compile:renderer": "webpack --config webpack.renderer.ts", + "compile:i18n": "lingui compile", "build:linux": "yarn compile && electron-builder --linux --dir -c.productName=LensDev", "build:mac": "yarn compile && electron-builder --mac --dir -c.productName=LensDev", "build:win": "yarn compile && electron-builder --win --dir -c.productName=LensDev", "test": "jest --env=jsdom src $@", "integration": "jest --coverage integration $@", - "dist": "yarn compile && electron-builder -p onTag", - "dist:win": "yarn compile && electron-builder -p onTag --x64 --ia32", + "dist": "yarn compile && electron-builder --publish onTag", + "dist:win": "yarn compile && electron-builder --publish onTag --x64 --ia32", "dist:dir": "yarn dist --dir -c.compression=store -c.mac.identity=null", "postinstall": "patch-package", "i18n:extract": "lingui extract", - "i18n:compile": "lingui compile", "download-bins": "concurrently yarn:download:*", "download:kubectl": "yarn run ts-node build/download_kubectl.ts", "download:helm": "yarn run ts-node build/download_helm.ts", diff --git a/webpack.main.ts b/webpack.main.ts index 219e629b53..bb486d47af 100755 --- a/webpack.main.ts +++ b/webpack.main.ts @@ -5,6 +5,7 @@ import { isDevelopment, isProduction, mainDir, outDir } from "./src/common/vars" import nodeExternals from "webpack-node-externals"; export default function (): webpack.Configuration { + console.info('WEBPACK:main', require("./src/common/vars"), process.env) return { context: __dirname, target: "electron-main", diff --git a/webpack.renderer.ts b/webpack.renderer.ts index 3ac0e11873..de95fbe09a 100755 --- a/webpack.renderer.ts +++ b/webpack.renderer.ts @@ -7,6 +7,7 @@ import TerserPlugin from "terser-webpack-plugin"; import ForkTsCheckerPlugin from "fork-ts-checker-webpack-plugin" export default function (): webpack.Configuration { + console.info('WEBPACK:renderer', require("./src/common/vars"), process.env) return { context: __dirname, target: "electron-renderer",