From f3a71eeef1fdd7f784203929bdf953b83159b2e1 Mon Sep 17 00:00:00 2001 From: Gert Hengeveld Date: Wed, 23 Oct 2024 11:13:33 +0200 Subject: [PATCH] Don't run tsup if clean-package fails --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2c073a86d..15be00f9c 100644 --- a/package.json +++ b/package.json @@ -69,10 +69,10 @@ "isChromatic.d.ts" ], "scripts": { - "build": "clean-package ; tsup ; clean-package restore", + "build": "clean-package && tsup ; clean-package restore", "build-storybook": "storybook build --stats-json", "build-test-storybook": "cross-env SMOKE_TEST=true storybook build -o test-storybook --stats-json", - "build-subdir": "cd subdir ; yarn build ; cd ..", + "build-subdir": "cd subdir && yarn build ; cd ..", "chromatic": "./dist/bin.js", "chromatic-prebuilt": "./dist/bin.js --storybook-build-dir=\"storybook-static\"", "chromatic-staging": "CHROMATIC_INDEX_URL=https://www.staging-chromatic.com ./dist/bin.js",