Skip to content

Commit

Permalink
feat: Export prop types of component (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jungwoo-An authored Jul 18, 2021
1 parent 66cb827 commit 2bb441e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export * from './EditorJs'

export { default } from './EditorJs'
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
"main": "./dist/react-editor-js.umd.js",
"module": "./dist/react-editor-js.es.js",
"types": "./dist/index.d.ts",
"types": "./dist/lib/index.d.ts",
"scripts": {
"build": "rollup --config --environment NODE_ENV:production",
"build-storybook": "build-storybook",
Expand Down
2 changes: 1 addition & 1 deletion stories/index.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react'
import { ComponentStory, ComponentMeta } from '@storybook/react'

import ReactEditorJS from '../lib/EditorJs'
import ReactEditorJS from '../lib'

import { EXAMPLE_TOOLS } from './constants'

Expand Down

0 comments on commit 2bb441e

Please sign in to comment.