diff --git a/README.md b/README.md index 75b05be..eac6c18 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,11 @@ you can also see the components in Storybook in order to play around yourself. ## Installation -More details to come. +```npm -i @helix-design-system/helix-react helix-ui prop-types``` + +or + +```yarn add @helix-design-system/helix-react helix-ui prop-types``` ### Prerequisites diff --git a/package.json b/package.json index 8350b20..94030b7 100644 --- a/package.json +++ b/package.json @@ -3,9 +3,9 @@ "version": "1.0.0", "description": "React components to wrap HelixUI custom elements", "source": "src/index.mjs", - "main": "dist/index.js", - "umd:main": "dist/index.umd.js", - "module": "dist/index.m.js", + "main": "dist/helix-react.js", + "module": "dist/helix-react.esm.js", + "unpkg": "dist/helix-react.js", "scripts": { "install:clean": "rm -rf node_modules && yarn install", "build": "microbundle -i src/index.mjs --external react,react-dom --name HelixReact --jsx React.createElement --jsxFragment React.Fragment --compress false --sourcemap false", diff --git a/src/index.mjs b/src/index.mjs index 74a7325..33e8fac 100644 --- a/src/index.mjs +++ b/src/index.mjs @@ -21,7 +21,7 @@ import Text from './Text'; import TextArea from './TextArea'; import Tooltip from './Tooltip'; -export default { +export { Alert, Button, Checkbox, diff --git a/yarn.lock b/yarn.lock index c8fc2f2..e5792ae 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2700,11 +2700,6 @@ "@webassemblyjs/wast-parser" "1.8.5" "@xtuc/long" "4.2.2" -"@webcomponents/webcomponentsjs@^2.4.3": - version "2.4.4" - resolved "https://registry.yarnpkg.com/@webcomponents/webcomponentsjs/-/webcomponentsjs-2.4.4.tgz#14b7e78da47f8f0071ff96c35335b871534179bc" - integrity sha512-UWXZYbaDLLfhm+xONXTiDciyhOSwKRrZieGQHFMSMGSxY4mbjZ5uYzOKgnuX0luYFvjJw32G3r0sCwQZPJIR4Q== - "@xtuc/ieee754@^1.2.0": version "1.2.0" resolved "https://registry.yarnpkg.com/@xtuc/ieee754/-/ieee754-1.2.0.tgz#eef014a3145ae477a1cbc00cd1e552336dceb790"