Skip to content

Commit

Permalink
fix(docs): add missing optional peerDep when using Docs with Web Comp…
Browse files Browse the repository at this point in the history
…onents
  • Loading branch information
gaetanmaisse committed Apr 8, 2021
1 parent ee48238 commit 75151e3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
8 changes: 8 additions & 0 deletions addons/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@
"@storybook/angular": "6.3.0-alpha.1",
"@storybook/vue": "6.3.0-alpha.1",
"@storybook/vue3": "6.3.0-alpha.1",
"@storybook/web-components": "6.3.0-alpha.1",
"babel-loader": "^8.0.0",
"lit-html": "^1.3.0",
"react": "^16.8.0 || ^17.0.0",
"react-dom": "^16.8.0 || ^17.0.0",
"svelte": "^3.31.2",
Expand All @@ -152,6 +154,12 @@
"@storybook/vue3": {
"optional": true
},
"@storybook/web-components": {
"optional": true
},
"lit-html": {
"optional": true
},
"react": {
"optional": true
},
Expand Down
1 change: 0 additions & 1 deletion addons/docs/src/frameworks/web-components/config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* global window */
/* eslint-disable import/no-extraneous-dependencies */
import React from 'react';
import { render } from 'lit-html';
import { extractArgTypes, extractComponentDescription } from './custom-elements';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable import/no-extraneous-dependencies */
import { getCustomElements, isValidComponent, isValidMetaData } from '@storybook/web-components';
import { ArgTypes } from '@storybook/api';
import { logger } from '@storybook/client-logger';
Expand Down
6 changes: 6 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6002,7 +6002,9 @@ __metadata:
"@storybook/angular": 6.3.0-alpha.1
"@storybook/vue": 6.3.0-alpha.1
"@storybook/vue3": 6.3.0-alpha.1
"@storybook/web-components": 6.3.0-alpha.1
babel-loader: ^8.0.0
lit-html: ^1.3.0
react: ^16.8.0 || ^17.0.0
react-dom: ^16.8.0 || ^17.0.0
svelte: ^3.31.2
Expand All @@ -6016,6 +6018,10 @@ __metadata:
optional: true
"@storybook/vue3":
optional: true
"@storybook/web-components":
optional: true
lit-html:
optional: true
react:
optional: true
react-dom:
Expand Down

0 comments on commit 75151e3

Please sign in to comment.