From 06f6347fe62febe1548ab60d96613af4626c1f92 Mon Sep 17 00:00:00 2001 From: Brandon Bayer Date: Tue, 5 May 2020 15:42:19 +0700 Subject: [PATCH] Fix `yarn dev` --- packages/cli/package.json | 2 +- packages/generator/package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cli/package.json b/packages/cli/package.json index 8835864876..d20be018ee 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -5,7 +5,7 @@ "license": "MIT", "scripts": { "b": "./bin/run", - "predev": "wait-on -d 500 ../server/dist/packages/server/src/index.d.ts", + "predev": "wait-on -d 500 ../server/dist/packages/server/src/index.d.ts && wait-on ../generator/dist/packages/generator/src/index.d.ts", "dev": "rimraf lib && tsc --watch --preserveWatchOutput", "build": "rimraf lib && tsc", "lint": "tsdx lint", diff --git a/packages/generator/package.json b/packages/generator/package.json index 7cc6fd4cf6..77db95ae48 100644 --- a/packages/generator/package.json +++ b/packages/generator/package.json @@ -9,6 +9,7 @@ "register" ], "scripts": { + "predev": "wait-on -d 500 ../server/dist/packages/server/src/index.d.ts", "dev": "tsdx watch --verbose", "build": "tsdx build && yarn build:templates", "build:templates": "rimraf templates/**/node_modules && cpy --dot --parents '!/node_modules/' templates dist",