Skip to content

Commit

Permalink
fix(dist): export Components, JSX types from custom-elements build
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Aug 16, 2020
1 parent 2581e65 commit abae5d1
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -24,7 +24,7 @@ const generateCustomElementsTypesOutput = async (
const code = [
`/* ${config.namespace} custom elements bundle */`,
``,
`import { Components } from "${componentsDtsRelPath}";`,
`import { Components, JSX } from "${componentsDtsRelPath}";`,
``,
...components.map(generateCustomElementType),
`/**`,
Expand All @@ -51,6 +51,8 @@ const generateCustomElementsTypesOutput = async (
` */`,
`export declare const setAssetPath: (path: string) => void;`,
``,
`export { Components, JSX };`,
``
];

const usersIndexJsPath = join(config.srcDir, 'index.ts');
Expand Down

0 comments on commit abae5d1

Please sign in to comment.