From 232692cacdc88c00c867f8fba89d55bc6c2a657d Mon Sep 17 00:00:00 2001 From: Hristo Deshev Date: Fri, 17 Feb 2017 14:10:55 +0200 Subject: [PATCH] Increase Node heap size for TypeScript compiler runs. --- package.json | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index fe2147771..90b06fa63 100644 --- a/package.json +++ b/package.json @@ -32,15 +32,15 @@ }, "scripts": { "setup": "npm run dev-link-tns-platform-declarations && npm run dev-link-tns-core-modules && npm run dev-link-tests && npm run dev-link-apps", - "tsc": "tsc", - "compile-all": "tsc -p tsconfig.json --outDir bin/dist", - "compile-check-base-dts": "tsc -p tsconfig.base-dts.json", - "compile-node-tests": "tsc -p tsconfig.node-tests.json --outDir bin/dist/node-tests", - "compile-check-combined-dts": "tsc -p tsconfig.combined-dts.json", - "tsc-w": "tsc --skipLibCheck -w", - "dev-tsc-tns-platform-declarations": "tsc -p tns-platform-declarations", - "dev-tsc-tests": "tsc -p tests", - "dev-tsc-apps": "tsc -p apps", + "tsc": "node --max_old_space_size=4096 ./node_modules/.bin/tsc", + "compile-all": "npm run tsc -- -p tsconfig.json --outDir bin/dist", + "compile-check-base-dts": "npm run tsc -- -p tsconfig.base-dts.json", + "compile-node-tests": "npm run tsc -- -p tsconfig.node-tests.json --outDir bin/dist/node-tests", + "compile-check-combined-dts": "npm run tsc -- -p tsconfig.combined-dts.json", + "tsc-w": "npm run tsc -- --skipLibCheck -w", + "dev-tsc-tns-platform-declarations": "npm run tsc -- -p tns-platform-declarations", + "dev-tsc-tests": "npm run tsc -- -p tests", + "dev-tsc-apps": "npm run tsc -- -p apps", "dev-tsc-all": "npm run dev-tsc-tns-platform-declarations && npm run tsc && npm run dev-tsc-tests && npm run dev-tsc-apps", "dev-link-tns-platform-declarations": "cd tns-platform-declarations && npm link", "dev-link-tns-core-modules": "cd tns-core-modules && npm link", @@ -56,7 +56,7 @@ "prepublish": "echo \"Development reminder: npm run setup\n\"", "typedoc": "typedoc --tsconfig tsconfig.typedoc.json --out bin/dist/apiref --mode file --includeDeclarations --name NativeScript --theme ./node_modules/nativescript-typedoc-theme", "dev-typedoc": "npm run typedoc && cd bin/dist/apiref && http-server", - "test-tsc-es2016": "tsc -p tsconfig.public.es2016.json", + "test-tsc-es2016": "npm run tsc -- -p tsconfig.public.es2016.json", "tslint": "tslint --config build/tslint.json 'tns-core-modules/**/*.ts' 'tests/**/*.ts' 'apps/**/*.ts' -e '**/node_modules/**' -e '**/platforms/**'" } }