From e38d555530da7676a07a08fa31a5c5360669bdab Mon Sep 17 00:00:00 2001 From: Sean Perkins Date: Fri, 21 Oct 2022 13:24:34 -0400 Subject: [PATCH] fix(react): run dev scripts in parallel --- packages/react/package.json | 3 ++- pnpm-lock.yaml | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/packages/react/package.json b/packages/react/package.json index ebca49587c..409aa7b7db 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -24,7 +24,7 @@ "build": "npm run clean && npm run copy && npm run compile", "clean": "rimraf dist && rimraf dist-transpiled && rimraf routing", "compile": "npm run tsc && rollup -c", - "dev": "tsc -p . --watch", + "dev": "concurrently --kill-others \"tsc -p . --watch\" \"rollup -c -w\"", "release": "np --any-branch --yolo --no-release-draft", "lint": "tslint --project .", "lint.fix": "tslint --project . --fix", @@ -60,6 +60,7 @@ "@types/node": "^14.0.14", "@types/react": "16.14.0", "@types/react-dom": "^16.9.0", + "concurrently": "^7.4.0", "fs-extra": "^9.0.1", "jest": "^26.6.3", "np": "^6.4.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 12a2d7c027..f7e7836e7f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -404,6 +404,7 @@ importers: '@types/node': ^14.0.14 '@types/react': 16.14.0 '@types/react-dom': ^16.9.0 + concurrently: ^7.4.0 fs-extra: ^9.0.1 ionicons: ^6.0.2 jest: ^26.6.3 @@ -434,6 +435,7 @@ importers: '@types/node': 14.18.32 '@types/react': 16.14.0 '@types/react-dom': 16.9.16 + concurrently: 7.4.0 fs-extra: 9.1.0 jest: 26.6.3 np: 6.5.0 @@ -12885,6 +12887,22 @@ packages: yargs: 16.2.0 dev: true + /concurrently/7.4.0: + resolution: {integrity: sha512-M6AfrueDt/GEna/Vg9BqQ+93yuvzkSKmoTixnwEJkH0LlcGrRC2eCmjeG1tLLHIYfpYJABokqSGyMcXjm96AFA==} + engines: {node: ^12.20.0 || ^14.13.0 || >=16.0.0} + hasBin: true + dependencies: + chalk: 4.1.2 + date-fns: 2.29.3 + lodash: 4.17.21 + rxjs: 7.5.7 + shell-quote: 1.7.4 + spawn-command: 0.0.2-1 + supports-color: 8.1.1 + tree-kill: 1.2.2 + yargs: 17.6.0 + dev: true + /condense-newlines/0.2.1: resolution: {integrity: sha512-P7X+QL9Hb9B/c8HI5BFFKmjgBu2XpQuF98WZ9XkO+dBGgk5XgwiQz7o1SmpglNWId3581UcS0SFAWfoIhMHPfg==} engines: {node: '>=0.10.0'}