fix: try something crazy

This commit is contained in:
Jesse Mazzella 2023-01-27 12:57:20 -08:00
parent 08db862a2a
commit d421a44426
2 changed files with 10 additions and 6 deletions

View File

@ -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")
.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

View File

@ -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",