From faeb5028b4271d57eda46230c0e312da538a20bd Mon Sep 17 00:00:00 2001 From: Hendy Irawan Date: Wed, 1 Apr 2020 01:22:45 +0700 Subject: [PATCH] refactor(cli): `npm run dev` starts nodemon&watch Fixed #431. --- packages/cli/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cli/package.json b/packages/cli/package.json index 572a98000b..f3c1cca925 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -20,7 +20,7 @@ }, "scripts": { "build": "tsc", - "dev": "nodemon", + "dev": "concurrently -k -n \"TypeScript,Node\" -c \"yellow.bold,cyan.bold\" \"npm run watch\" \"nodemon\"", "postpack": "rm -f oclif.manifest.json", "prepack": "echo \"Building project...\" && rm -rf dist && tsc -b && oclif-dev manifest", "start": "run-script-os", @@ -64,6 +64,7 @@ "@types/open": "^6.1.0", "@types/parseurl": "^1.3.1", "@types/request-promise-native": "^1.0.15", + "concurrently": "^5.1.0", "jest": "^24.9.0", "nodemon": "^2.0.2", "p-cancelable": "^2.0.0",