diff --git a/aio/aio-builds-setup/dockerbuild/scripts-js/package.json b/aio/aio-builds-setup/dockerbuild/scripts-js/package.json index 6cc6e30f77..15b48d38f4 100644 --- a/aio/aio-builds-setup/dockerbuild/scripts-js/package.json +++ b/aio/aio-builds-setup/dockerbuild/scripts-js/package.json @@ -7,17 +7,22 @@ "license": "MIT", "scripts": { "prebuild": "yarn clean-dist", - "build": "tsc", - "build-watch": "yarn build --watch", + "build": "yarn ~~build", + "prebuild-watch": "yarn prebuild", + "build-watch": "yarn ~~build-watch", "clean-dist": "node --eval \"require('shelljs').rm('-rf', 'dist')\"", - "dev": "concurrently --kill-others --raw --success first \"yarn build-watch\" \"yarn test-watch\"", + "predev": "yarn build", + "dev": "concurrently --kill-others --raw --success first \"yarn ~~build-watch\" \"yarn ~~test-watch\"", "lint": "tslint --project tsconfig.json", - "pre~~test-only": "yarn lint", - "~~test-only": "node dist/test", "pretest": "yarn build", "test": "yarn ~~test-only", - "pretest-watch": "yarn build", - "test-watch": "nodemon --exec \"yarn ~~test-only\" --watch dist" + "pretest-watch": "yarn pretest", + "test-watch": "yarn ~~test-watch", + "~~build": "tsc", + "~~build-watch": "yarn ~~build --watch", + "pre~~test-only": "yarn lint", + "~~test-only": "node dist/test", + "~~test-watch": "nodemon --delay 1 --exec \"yarn ~~test-only\" --watch dist" }, "dependencies": { "body-parser": "^1.18.2",