diff --git a/package.json b/package.json index e5454593a..7e262db3a 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "examples/core-example-advanced" ], "scripts": { - "build": "lerna run build --stream", + "build": "yarn build:packages && lerna run build --stream", "build:www": "yarn build:packages && cd apps/www && yarn build", "build:core": "lerna run build:core", "build:packages": "lerna run build:packages --stream", @@ -38,7 +38,7 @@ "test:watch": "lerna run test:watch --stream", "docs": "lerna run typedoc", "docs:watch": "lerna run typedoc --watch", - "postinstall": "husky install" + "postinstall": "husky install & yarn build:packages" }, "devDependencies": { "@swc-node/jest": "^1.3.3",