Skip to content

Commit

Permalink
--forceExit
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelsavara committed Aug 7, 2024
1 parent 95dd9fe commit e157ef0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/mono/browser/runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"type": "module",
"types": "dotnet.d.ts",
"scripts": {
"rollup": "rollup -c",
"rollup": "rollup -c --forceExit",
"lint": "eslint --no-color --max-warnings=0 \"./**/*.ts\" \"./*.js\"",
"format": "eslint --fix \"./**/*.ts\" \"./*.js\""
},
Expand Down
9 changes: 4 additions & 5 deletions src/mono/browser/runtime/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ import fast_glob from "fast-glob";
import gitCommitInfo from "git-commit-info";
import MagicString from "magic-string";

setTimeout(() => {
// eslint-disable-next-line no-console
console.log("Forcibly exiting process to work around hang in rollup");
process.exit();
}, 35000);

if (process.versions.node.split(".")[0] < 18) {
throw new Error(`NodeJS at '${process.execPath}' has too low version '${process.versions.node}'`);
}

const configuration = process.env.Configuration;
const isDebug = configuration !== "Release";
Expand Down

0 comments on commit e157ef0

Please sign in to comment.