Skip to content

Commit

Permalink
more memory for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
johan-gorter committed Jun 17, 2024
1 parent 3f01256 commit 6c37e4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typescript-assistant",
"version": "0.67.0",
"version": "0.67.1",
"description": "Combines and integrates professional Typescript tools into your project",
"main": "dist/index.js",
"bin": {
Expand Down
2 changes: 2 additions & 0 deletions src/code-style/linter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ export function createLinter(dependencies: {
}

function startProcess() {
let env = Object.assign({ "NODE_OPTIONS" : "--max-old-space-size=8192" }, process.env );
lintProcess = fork(`${__dirname}/linter-process-eslint`, [], {
execArgv: process.execArgv.filter((arg) => !arg.includes("inspect")),
env
});
lintProcess.on("close", (code: number) => {
if (code !== 0 && code !== null) {
Expand Down

0 comments on commit 6c37e4f

Please sign in to comment.