Skip to content

Commit

Permalink
build: add component-specific exports for package
Browse files Browse the repository at this point in the history
  • Loading branch information
ezhangy committed Jul 31, 2024
1 parent 04e0a87 commit c6138c3
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,35 @@
"workspaces": [
"packages/*"
],
"module": "packages/react-library/dist/index.js",
"types": "packages/react-library/dist/types/index.d.ts",
"main": "packages/react-library/dist/index.js",
"module": "packages/stencil-library/dist/components/index.js",
"types": "packages/stencil-library/dist/components/index.d.ts",
"main": "packages/stencil-library/dist/components/index.js",
"repository": {
"type": "git",
"url": "https://github.com/newjersey/stencil-react-export.git"
},
"exports": {
"./my-component": {
"import": "./packages/stencil-library/dist/components/my-component.js",
"types": "./packages/stencil-library/dist/components/my-component.d.ts"
},
"./njwds-alert": {
"import": "./packages/stencil-library/dist/components/njwds-alert.js",
"types": "./packages/stencil-library/dist/components/njwds-alert.d.ts"
},
"./njwds-banner": {
"import": "./packages/stencil-library/dist/components/njwds-banner.js",
"types": "./packages/stencil-library/dist/components/njwds-banner.d.ts"
},
"./njwds-button": {
"import": "./packages/stencil-library/dist/components/njwds-button.js",
"types": "./packages/stencil-library/dist/components/njwds-button.d.ts"
},
"./react": {
"import": "./packages/react-library/dist/index.js",
"types":"./packages/react-library/dist/types/index.d.ts"
}
},
"files": [
"packages/stencil-library/dist/",
"packages/stencil-library/loader/",
Expand Down

0 comments on commit c6138c3

Please sign in to comment.