Skip to content

Commit

Permalink
chore(build): add exports field (#3207)
Browse files Browse the repository at this point in the history
### Related Ticket(s)

Refs carbon-design-system/carbon-web-components#443.

### Description

This change adds [`exports` field](https://nodejs.org/dist/latest-v14.x/docs/api/esm.html#esm_package_entry_points) in `package.json`.
Doing so enables several CDNs that support module path mapping.

### Changelog

**New**

- `exports` field in `package.json`.
  • Loading branch information
asudoh committed Jul 20, 2020
1 parent 9098b1e commit 4647ad1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/web-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
"main": "es/index.js",
"module": "es/index.js",
"typings": "es/index.d.ts",
"exports": {
"./es/": "./es/",
"./custom-elements.json": "./custom-elements.json",
"./package.json": "./package.json"
},
"files": [
"es/**/*",
"scss/**/*",
Expand Down

0 comments on commit 4647ad1

Please sign in to comment.