From 8a0915c49fdbafc16435ad697377b7fb80feb032 Mon Sep 17 00:00:00 2001 From: dannyrb Date: Fri, 26 Apr 2019 12:25:23 -0400 Subject: [PATCH] Update scripts to match CI memory limits --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 0d8384edf..b847c0a61 100644 --- a/package.json +++ b/package.json @@ -15,13 +15,13 @@ "npm": ">=5" }, "scripts": { - "build": "yarn run prep && node --max-old-space-size=8192 node_modules/rollup/bin/rollup -c", + "build": "yarn run prep && node --max-old-space-size=4096 node_modules/rollup/bin/rollup -c", "prepublishOnly": "yarn run build", "lint": "eslint -c .eslintrc --fix src && prettier --single-quote --write src/**/*.{js,jsx,json,css}", "prepare": "yarn run build", "predeploy": "cd example && npm install && yarn run build", "test": "jest", - "test:ci": "jest --ci --runInBand --collectCoverage --reporters=default --reporters=jest-junit && codecov", + "test:ci": "jest --ci --max_old_space_size=4096 --maxWorkers=2 --runInBand --collectCoverage --reporters=default --reporters=jest-junit && codecov", "copy:webworkers": "cpx 'node_modules/cornerstone-wado-image-loader/dist/*.min.js*' public", "staticDeploy": "./generateStaticSite.sh", "version": "node -p -e \"'export default \\'' + require('./package.json').version + '\\';'\" > src/version.js",