Skip to content

Commit

Permalink
change how max memory size is set when running via tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
CiaranMn committed Feb 27, 2024
1 parent 413ee7e commit 5a51221
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
5 changes: 3 additions & 2 deletions apps/hash-ai-worker-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
"scripts": {
"build": "tsc --build && yarn exe ./scripts/bundle-workflow-code.ts",
"build:docker": "docker buildx build --tag hash-ai-worker-ts --file ./docker/Dockerfile ../../ --load",
"dev": "NODE_ENV=development tsx watch --max-old-space-size=2048 --clear-screen=false ./src/main.ts",
"dev": "NODE_ENV=development NODE_OPTIONS=--max-old-space-size=2048 tsx watch --clear-screen=false ./src/main.ts",
"exe": "tsx",
"fix:eslint": "eslint --fix .",
"lint:eslint": "eslint --report-unused-disable-directives .",
"lint:tsc": "tsc --noEmit",
"start": "cross-env NODE_ENV=production tsx --max-old-space-size=2048 ./src/main.ts",
"start": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=2048 tsx ./src/main.ts",
"test:unit": "jest"
},
"dependencies": {
Expand Down Expand Up @@ -64,3 +64,4 @@
"eslint": "8.57.0"
}
}

5 changes: 3 additions & 2 deletions apps/hash-integration-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
"scripts": {
"build": "tsc --build && yarn exe ./scripts/bundle-workflow-code.ts",
"build:docker": "docker buildx build --tag hash-integration-worker --file ./docker/Dockerfile ../../ --load",
"dev": "tsx watch --max-old-space-size=2048 --clear-screen=false ./src/main.ts",
"dev": "NODE_OPTIONS=--max-old-space-size=2048 tsx watch --clear-screen=false ./src/main.ts",
"exe": "tsx",
"fix:eslint": "eslint --fix .",
"lint:eslint": "eslint --report-unused-disable-directives .",
"lint:tsc": "tsc --noEmit",
"start": "cross-env NODE_ENV=production tsx --max-old-space-size=2048 ./src/main.ts"
"start": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=2048 tsx ./src/main.ts"
},
"dependencies": {
"@blockprotocol/type-system": "0.1.1",
Expand All @@ -37,3 +37,4 @@
"eslint": "8.57.0"
}
}

5 changes: 3 additions & 2 deletions apps/hash-realtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
"license": "AGPL-3.0",
"scripts": {
"clear-redis": "tsx ./src/scripts/clear-redis.ts",
"dev": "yarn clear-redis && NODE_ENV=development tsx watch --clear-screen=false --max-old-space-size=2048 ./src/index.ts",
"dev": "yarn clear-redis && NODE_ENV=development NODE_OPTIONS=--max-old-space-size=2048 tsx watch --clear-screen=false ./src/index.ts",
"fix:eslint": "eslint --fix .",
"lint:eslint": "eslint --report-unused-disable-directives .",
"lint:tsc": "tsc --noEmit",
"start": "cross-env NODE_ENV=production tsx --max-old-space-size=2048 ./src/index.ts"
"start": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=2048 tsx ./src/index.ts"
},
"dependencies": {
"@local/hash-backend-utils": "0.0.0-private",
Expand All @@ -27,3 +27,4 @@
"eslint": "8.57.0"
}
}

3 changes: 2 additions & 1 deletion apps/hash-search-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"fix:eslint": "eslint --fix .",
"lint:eslint": "eslint --report-unused-disable-directives .",
"lint:tsc": "tsc --noEmit",
"start": "cross-env NODE_ENV=production tsx --max-old-space-size=2048 ./src/index.ts"
"start": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=2048 tsx ./src/index.ts"
},
"dependencies": {
"@apps/hash-api": "0.0.0-private",
Expand All @@ -27,3 +27,4 @@
"eslint": "8.57.0"
}
}

0 comments on commit 5a51221

Please sign in to comment.