From dd21a244480315128fd5a783cdf858a917f2e6ee Mon Sep 17 00:00:00 2001 From: JeremyWuuuuu <591449570@qq.com> Date: Wed, 28 Jul 2021 23:34:34 +0800 Subject: [PATCH] fix/build-script-error - Add yarn prefix to build script to avoid rollup not found error --- package.json | 2 +- scripts/build.sh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index bb7c8ee..45fca12 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "This repository is meant for build color utils for theme customization", "scripts": { "build": "sh ./scripts/build.sh", - "build:js": "rollup --config ./configs/rollup.config.js", + "build:js": "yarn rollup --config ./configs/rollup.config.js", "test": "jest", "test:c": "jest --coverage", "test:w": "jest --watch", diff --git a/scripts/build.sh b/scripts/build.sh index 14ea806..d1cfb4d 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -7,8 +7,7 @@ echo "Using rollup to build components" yarn build:js echo "Removing unnecessary test typings" -rm -rf dist/dist/test - +rm -rf dist/test echo "Adding index.js" cat > dist/index.js <