From d1b96c815087f6aff1dec69247ee83439b9533ee Mon Sep 17 00:00:00 2001 From: Doug Gibson Date: Thu, 2 Nov 2023 13:43:54 -0400 Subject: [PATCH] Fixed loader errors on new install --- packages/web-components/.storybook/preview.js | 2 +- packages/web-components/package.json | 5 ++--- packages/web-components/stencil.config.ts | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/web-components/.storybook/preview.js b/packages/web-components/.storybook/preview.js index 42b1e8eb..c6c3ec38 100644 --- a/packages/web-components/.storybook/preview.js +++ b/packages/web-components/.storybook/preview.js @@ -1,6 +1,6 @@ /** @type { import('@storybook/html').Preview } */ import { withThemeByDataAttribute } from '@storybook/addon-styling'; -import {defineCustomElements} from '../loader'; +import {defineCustomElements} from '../dist/loader'; defineCustomElements(); diff --git a/packages/web-components/package.json b/packages/web-components/package.json index e6ab5faf..8c91fdb9 100644 --- a/packages/web-components/package.json +++ b/packages/web-components/package.json @@ -15,8 +15,7 @@ "url": "https://github.com/ionic-team/stencil-component-starter.git" }, "files": [ - "dist/", - "loader/" + "dist/" ], "scripts": { "build": "stencil build --docs", @@ -24,7 +23,7 @@ "test": "stencil test --spec --e2e", "test.watch": "stencil test --spec --e2e --watchAll", "generate": "stencil generate", - "storybook": "storybook dev -p 6008", + "storybook": "stencil build --docs && storybook dev -p 6008", "build-storybook": "storybook build" }, "dependencies": { diff --git a/packages/web-components/stencil.config.ts b/packages/web-components/stencil.config.ts index 9475b7d4..36cbfc37 100644 --- a/packages/web-components/stencil.config.ts +++ b/packages/web-components/stencil.config.ts @@ -2,7 +2,7 @@ import { Config } from '@stencil/core'; import { sass } from '@stencil/sass'; export const config: Config = { - namespace: 'web-components', + namespace: 'cbp-web-components', outputTargets: [ { type: 'dist',