Skip to content

Commit 2d1fd71

Browse files
authored
Merge pull request #109 from HelixDesignSystem/fix-importing
Fix importing
2 parents f215cde + 4ae3600 commit 2d1fd71

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ you can also see the components in Storybook in order to play around yourself.
4242

4343
## Installation
4444

45-
More details to come.
45+
```npm -i @helix-design-system/helix-react helix-ui prop-types```
46+
47+
or
48+
49+
```yarn add @helix-design-system/helix-react helix-ui prop-types```
4650

4751
### Prerequisites
4852

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"version": "1.0.0",
44
"description": "React components to wrap HelixUI custom elements",
55
"source": "src/index.mjs",
6-
"main": "dist/index.js",
7-
"umd:main": "dist/index.umd.js",
8-
"module": "dist/index.m.js",
6+
"main": "dist/helix-react.js",
7+
"module": "dist/helix-react.esm.js",
8+
"unpkg": "dist/helix-react.js",
99
"scripts": {
1010
"install:clean": "rm -rf node_modules && yarn install",
1111
"build": "microbundle -i src/index.mjs --external react,react-dom --name HelixReact --jsx React.createElement --jsxFragment React.Fragment --compress false --sourcemap false",

src/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import Text from './Text';
2121
import TextArea from './TextArea';
2222
import Tooltip from './Tooltip';
2323

24-
export default {
24+
export {
2525
Alert,
2626
Button,
2727
Checkbox,

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2700,11 +2700,6 @@
27002700
"@webassemblyjs/wast-parser" "1.8.5"
27012701
"@xtuc/long" "4.2.2"
27022702

2703-
"@webcomponents/webcomponentsjs@^2.4.3":
2704-
version "2.4.4"
2705-
resolved "https://registry.yarnpkg.com/@webcomponents/webcomponentsjs/-/webcomponentsjs-2.4.4.tgz#14b7e78da47f8f0071ff96c35335b871534179bc"
2706-
integrity sha512-UWXZYbaDLLfhm+xONXTiDciyhOSwKRrZieGQHFMSMGSxY4mbjZ5uYzOKgnuX0luYFvjJw32G3r0sCwQZPJIR4Q==
2707-
27082703
"@xtuc/ieee754@^1.2.0":
27092704
version "1.2.0"
27102705
resolved "https://registry.yarnpkg.com/@xtuc/ieee754/-/ieee754-1.2.0.tgz#eef014a3145ae477a1cbc00cd1e552336dceb790"

0 commit comments

Comments
 (0)