Skip to content

Commit 2489c26

Browse files
committed
add exports
1 parent ffe02b8 commit 2489c26

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

packages/i18n/package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@
1010
"config.json",
1111
"types.d.ts"
1212
],
13+
"exports": {
14+
".": "./lib/index.mjs",
15+
"./config.json": "./config.json",
16+
"./locales/*.json": "./locales/*.json",
17+
"./types": {
18+
"types": "./types.d.ts",
19+
"default": "./types.d.ts"
20+
}
21+
},
1322
"scripts": {
1423
"build": "tsc --declaration --emitDeclarationOnly",
1524
"lint:js": "eslint \"**/*.{js,mjs,ts}\""

packages/ui-components/package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@
99
"types.ts",
1010
"stylelint"
1111
],
12+
"exports": {
13+
"./Common/*": "./Common/*",
14+
"./Common/*/*": "./Common/*/*",
15+
"./Containers/*": "./Containers/*",
16+
"./Containers/*/*": "./Containers/*/*",
17+
"./Icons/*": "./Icons/*",
18+
"./Icons/*/*": "./Icons/*/*",
19+
"./styles/*": "./styles/*",
20+
"./types": "./types.ts",
21+
"./stylelint/*": "./stylelint/*"
22+
},
1223
"scripts": {
1324
"build": "tsc --declaration --emitDeclarationOnly",
1425
"check-types": "tsc --noEmit",

0 commit comments

Comments
 (0)