Skip to content

Commit bdfe392

Browse files
authored
chore: Provide export maps for @cloudscape-design/components-definitions (#3548)
1 parent f4b5334 commit bdfe392

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build-tools/tasks/package-json.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,13 @@ module.exports = parallel([
121121
]),
122122
generatePackageJson(path.join(workspace.targetPath, 'components-definitions'), {
123123
name: '@cloudscape-design/components-definitions',
124+
exports: {
125+
'./components': './components/index.js',
126+
'./test-utils-doc/dom': './test-utils-doc/dom.js',
127+
'./test-utils-doc/selectors': './test-utils-doc/selectors.js',
128+
// this directory is generated down the line in other builds
129+
'./styles/*.json': './styles/*.json',
130+
},
124131
}),
125132
styleDictionaryPackageJson,
126133
componentsThemeablePackageJson,

0 commit comments

Comments
 (0)