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",