From bc64337c3a6bfb32514d489d50cb0f4e7f356eb7 Mon Sep 17 00:00:00 2001 From: Ravi Sundram Date: Mon, 24 Jun 2024 14:47:12 +1000 Subject: [PATCH] Update Storybook config --- .github/workflows/chromatic.yml | 2 +- .storybook/main.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index 2872a2d..51dd7c6 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -20,7 +20,7 @@ jobs: with: node-version: 20 - name: Install dependencies - run: npm ci + run: yarn #👇 Adds Chromatic as a step in the workflow - name: Run Chromatic uses: chromaui/action@latest diff --git a/.storybook/main.js b/.storybook/main.js index a1681c1..fc20132 100644 --- a/.storybook/main.js +++ b/.storybook/main.js @@ -13,5 +13,9 @@ const config = { name: '@storybook/vue3-vite', options: {}, }, + viteFinal(config) { + config.plugins = (config.plugins ?? []).filter((plugin) => plugin && 'name' in plugin && plugin.name !== 'vite:dts'); + return config; + }, }; export default config;