diff --git a/.webpack/webpack.common.js b/.webpack/webpack.common.js index 1503760a0b..5598ed0bb3 100644 --- a/.webpack/webpack.common.js +++ b/.webpack/webpack.common.js @@ -22,13 +22,19 @@ let gitBranch = "error-retrieving-branch"; try { gitRevision = require("child_process") .execSync("git rev-parse HEAD", { - cwd: __dirname + env: { + ...process.env, + GIT_DIR: undefined + } }) .toString() .trim(); - gitBranch = require("child_process") + gitBranch = require("child_process") .execSync("git rev-parse --abbrev-ref HEAD", { - cwd: __dirname + env: { + ...process.env, + GIT_DIR: undefined + } }) .toString() .trim(); @@ -169,7 +175,6 @@ const config = { } ] }, - stats: "errors-warnings", performance: { // We should eventually consider chunking to decrease // these values diff --git a/package.json b/package.json index 9468f6f314..53d773c28d 100644 --- a/package.json +++ b/package.json @@ -100,8 +100,7 @@ "cov:e2e:full:publish": "codecov --disable=gcov -f ./coverage/e2e/lcov.info -F e2e-full", "cov:e2e:stable:publish": "codecov --disable=gcov -f ./coverage/e2e/lcov.info -F e2e-stable", "cov:unit:publish": "codecov --disable=gcov -f ./coverage/unit/lcov.info -F unit", - "prepare": "npm run build:prod && npx tsc", - "preinstall": "git rev-parse HEAD >> version.info; git rev-parse --abbrev-ref HEAD >> version.info" + "prepare": "npm run build:prod && npx tsc" }, "repository": { "type": "git",