diff --git a/scripts/publish/npm_publish_router.sh b/scripts/publish/npm_publish_router.sh index 53c105c670..dde02f8a7d 100755 --- a/scripts/publish/npm_publish_router.sh +++ b/scripts/publish/npm_publish_router.sh @@ -6,7 +6,7 @@ ROOT_DIR=$(cd $(dirname $0)/../..; pwd) cd ${ROOT_DIR} gulp clean -gulp build.js buildRouter.dev +node --max-old-space-size=6000 ./node_modules/.bin/gulp build.js buildRouter.dev NPM_DIR=${ROOT_DIR}/dist/npm rm -fr ${NPM_DIR}