Skip to content

Commit abd793a

Browse files
authored
fix(node): adding default package exports for services/utilities (#7048)
### Related Ticket(s) Refs #6203 ### Description This fixes an import issue for `services` and `utilities` if they are used in Node 14. ### Changelog **Changed** - Updated `exports` configuration for `services` and `utilities`
1 parent adcef7e commit abd793a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

packages/services/package.json

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
"repository": "https://github.com/carbon-design-system/carbon-for-ibm-dotcom",
99
"bugs": "https://github.com/carbon-design-system/carbon-for-ibm-dotcom/issues",
1010
"exports": {
11+
".": {
12+
"import": "./es/index.js",
13+
"require": "./lib/index.js"
14+
},
1115
"./es": "./es/index.js",
1216
"./es/": "./es/",
1317
"./lib": "./lib/index.js",

packages/utilities/package.json

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
"repository": "https://github.com/carbon-design-system/carbon-for-ibm-dotcom",
99
"bugs": "https://github.com/carbon-design-system/carbon-for-ibm-dotcom/issues",
1010
"exports": {
11+
".": {
12+
"import": "./es/index.js",
13+
"require": "./lib/index.js"
14+
},
1115
"./es": "./es/index.js",
1216
"./es/": "./es/",
1317
"./lib": "./lib/index.js",

0 commit comments

Comments
 (0)