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 {