From 6c6113d2731075e3e663ce9b978c20e653a1374a Mon Sep 17 00:00:00 2001 From: Pavel Denisjuk Date: Sun, 13 Jan 2019 21:33:57 +0100 Subject: [PATCH] fix: build script for webiny-entity-mongodb. (#440) --- packages/webiny-entity-mongodb/package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/webiny-entity-mongodb/package.json b/packages/webiny-entity-mongodb/package.json index 4b730697230..ebadef56266 100644 --- a/packages/webiny-entity-mongodb/package.json +++ b/packages/webiny-entity-mongodb/package.json @@ -22,7 +22,8 @@ "sinon": "^4.2.0" }, "scripts": { - "build": "babel src -d lib --source-maps --copy-files", - "build:watch": "babel src -d lib --source-maps --copy-files --watch" + "build": "babel src -d ${DEST:-build} --source-maps --copy-files", + "flow-copy-source": "flow-copy-source src ${DEST:-build}", + "postbuild": "yarn flow-copy-source" } }