From c0a62ad75b2c897ae2d23cb9ed67c033460c20f7 Mon Sep 17 00:00:00 2001 From: Cory Caywood Date: Tue, 21 Apr 2020 15:39:26 +0900 Subject: [PATCH] build: Compile the SDK on Yarn/NPM postinstall This will ensure that the SDK has been compiled before the sample app uses it --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index bff78b993..ff10a323b 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "scripts": { "sdk": "yarn workspace js-miniapp-sdk", "sample": "yarn workspace js-miniapp-sample", - "bridge": "yarn workspace js-miniapp-bridge" + "bridge": "yarn workspace js-miniapp-bridge", + "postinstall": "yarn sdk compile" } }