From 1eaf58478cdd01e38c7cf95d59bf5a1c9f1b699e Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Tue, 20 Dec 2022 16:20:41 -0500 Subject: [PATCH] [O] Build before deploying npm --- scripts/bin/deploy-npm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/bin/deploy-npm b/scripts/bin/deploy-npm index 12eda6f..26f17ed 100755 --- a/scripts/bin/deploy-npm +++ b/scripts/bin/deploy-npm @@ -6,5 +6,9 @@ set -e # Check if package.json is present [[ ! -f "package.json" ]] && echo "package.json not found, please make sure you're in the correct path" && exit -1 +# Build +[[ -f "yarn.lock" ]] && yarn build +[[ -f "package-lock.json" ]] && npm build + # Deploy npm npm publish \ No newline at end of file