From f5d453caebcd818cfffac95722654763fce2c19c Mon Sep 17 00:00:00 2001 From: Ayc0 Date: Thu, 14 Oct 2021 22:03:03 +0200 Subject: [PATCH] update build command --- packages/manatea/package.json | 6 ++++-- packages/react-manatea/package.json | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/manatea/package.json b/packages/manatea/package.json index 0bb1998..9ff62e0 100644 --- a/packages/manatea/package.json +++ b/packages/manatea/package.json @@ -23,8 +23,10 @@ ], "scripts": { "start": "microbundle watch", - "build": "microbundle", - "prepublishOnly": "rm -rf dist && yarn -s build" + "build:clean": "rm -rf dist", + "build:action": "microbundle", + "build": "yarn build:clean && yarn build:action", + "prepublishOnly": "yarn build" }, "devDependencies": { "microbundle": "^0.13.0", diff --git a/packages/react-manatea/package.json b/packages/react-manatea/package.json index 5816140..37865bf 100644 --- a/packages/react-manatea/package.json +++ b/packages/react-manatea/package.json @@ -17,8 +17,10 @@ ], "scripts": { "start": "microbundle watch", - "build": "microbundle --name $npm_package_name --globals react=React", - "prepublishOnly": "rm -rf dist && yarn -s build" + "build:clean": "rm -rf dist", + "build:action": "microbundle --name $npm_package_name --globals react=React", + "build": "yarn build:clean && yarn build:action", + "prepublishOnly": "yarn build" }, "devDependencies": { "@types/react": "^17.0.5",