From 309e910f5e9921ab67d34777302532a715856545 Mon Sep 17 00:00:00 2001 From: Meghea Iulian Date: Thu, 21 Mar 2024 08:36:42 +0200 Subject: [PATCH] chore: redeploy --- .eslintignore | 1 + .github/workflows/preview.yml | 5 +++++ stories/cosmoz-autocomplete.stories.js | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.eslintignore b/.eslintignore index d5c36bb1..42dc3b50 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,3 +1,4 @@ coverage/ dist/ +storybook-static/ __snapshots__/ diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index f78608ef..456a0bd7 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -31,6 +31,11 @@ jobs: - name: Build storybook run: npm run storybook:build + - name: Fix imports + run: | + [ -d "stories" ] && sed -i 's/..\/src/..\/dist/g' stories/*.stories.js || true + [ -d "demo" ] && sed -i 's/..\/src/..\/dist/g' demo/*.js || true + - uses: rossjrw/pr-preview-action@v1 with: source-dir: ./storybook-static diff --git a/stories/cosmoz-autocomplete.stories.js b/stories/cosmoz-autocomplete.stories.js index 15dd5276..48fe98aa 100644 --- a/stories/cosmoz-autocomplete.stories.js +++ b/stories/cosmoz-autocomplete.stories.js @@ -1,5 +1,5 @@ import { html } from 'lit-html'; -import '@neovici/cosmoz-autocomplete/autocomplete'; +import '../src/autocomplete/index.ts'; import { colors } from './data'; export default {