Attempt to get working

This commit is contained in:
Matt Godbolt
2022-01-17 16:42:57 -06:00
parent 368a47c6e7
commit 2ce32c024c
3 changed files with 16 additions and 1 deletions
+9
View File
@@ -92,6 +92,7 @@ const opts = nopt({
loki: [String],
discoveryonly: [String],
prediscovered: [String],
version: [Boolean],
});
if (opts.debug) logger.level = 'debug';
@@ -780,6 +781,14 @@ async function main() {
startListening(webServer);
}
if (opts.version) {
logger.info('Compiler Explorer version info:');
logger.info(` git release ${gitReleaseName}`);
logger.info(` release build ${releaseBuildNumber}`);
logger.info('Exiting');
process.exit(0);
}
main()
.then(() => null)
.catch(err => {
+3
View File
@@ -32,6 +32,9 @@ python3 ./etc/scripts/politic.py
# Output some magic for GH to set the branch name
echo "::set-output name=branch::${GITHUB_REF#refs/heads/}"
# Run to make sure we haven't just made something that won't work
node ./app.js --version
echo "${HASH}" >out/dist/git_hash
echo "${RELEASE_NAME}" >out/dist/release_build
rm -rf out/dist-bin
+4 -1
View File
@@ -15,7 +15,10 @@
"node": ">=16"
},
"main": "./app.js",
"esm": true,
"esm": {
"mode": "all",
"cache": false
},
"dependencies": {
"@fortawesome/fontawesome-free": "^5.15.4",
"@sentry/browser": "^6.16.1",