Skip to content

Commit 2b29a99

Browse files
committed
Revert "ignore internal type/interface exports"
This reverts commit 3d93069.
1 parent d29ac5f commit 2b29a99

File tree

1 file changed

+1
-19
lines changed
  • packages/cli/src/scripts/codemod/transforms/export-maps

1 file changed

+1
-19
lines changed

packages/cli/src/scripts/codemod/transforms/export-maps/main.cts

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,6 @@ const compatPackageName = '@ui5/webcomponents-react-compat';
1010

1111
const packageNames = [mainPackageName, basePackageName, chartsPackageName, aiPackageName, compatPackageName];
1212

13-
const ignoredImportedNames = new Set([
14-
'ReducedReactNode',
15-
'ReducedReactNodeWithBoolean',
16-
'UI5WCSlotsNode',
17-
'CommonProps',
18-
'Ui5CustomEvent',
19-
'Ui5DomRef',
20-
]);
21-
2213
// Enums for main package
2314
const libraryPath = require.resolve('@ui5/webcomponents-react/package.json');
2415
const enumsDir = path.join(path.dirname(libraryPath), 'dist', 'enums');
@@ -150,18 +141,9 @@ export default function transform(file: FileInfo, api: API): string | undefined
150141
packageNames.forEach((pkg) => {
151142
root.find(j.ImportDeclaration, { source: { value: pkg } }).forEach((importPath) => {
152143
const specifiers = importPath.node.specifiers || [];
153-
//todo: remove any
154144
specifiers.forEach((spec: any) => {
155-
if (spec.type !== 'ImportSpecifier') {
156-
return;
157-
}
158-
145+
if (spec.type !== 'ImportSpecifier') return;
159146
const importedName = spec.imported.name as string;
160-
161-
if (ignoredImportedNames.has(importedName)) {
162-
return;
163-
}
164-
165147
let componentName = importedName;
166148
if (importedName.endsWith('PropTypes')) {
167149
componentName = importedName.replace(/PropTypes$/, '');

0 commit comments

Comments
 (0)