Skip to content

Commit a665715

Browse files
authored
fix: remove json export from root index files (#6269)
JSON imports are not compatible with all frameworks/build tools.
1 parent db286f9 commit a665715

File tree

4 files changed

+0
-8
lines changed

4 files changed

+0
-8
lines changed

packages/base/src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import pkgJson from '../package.json';
21
import * as Device from './Device/index.js';
32
import * as hooks from './hooks/index.js';
43
import { I18nStore } from './stores/I18nStore.js';
@@ -10,4 +9,3 @@ export * from './utils/index.js';
109
export * from './hooks/index.js';
1110

1211
export { I18nStore, StyleStore, ThemingParameters, Device, hooks };
13-
export const version = pkgJson.version;

packages/charts/src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import pkgJson from '../package.json';
21
import { BarChart } from './components/BarChart/BarChart.js';
32
import { BarChartPlaceholder } from './components/BarChart/Placeholder.js';
43
import { BulletChart } from './components/BulletChart/BulletChart.js';
@@ -46,4 +45,3 @@ export {
4645
ColumnChartWithTrendPlaceholder,
4746
TimelineChartPlaceholder
4847
};
49-
export const version = pkgJson.version;

packages/compat/src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import pkgJson from '../package.json';
21
export * from './components/Loader/index.js';
32
export * from './components/OverflowToolbarButton/index.js';
43
export * from './components/OverflowToolbarToggleButton/index.js';
@@ -14,4 +13,3 @@ export * from './components/ToolbarSpacer/index.js';
1413
export { LoaderType } from './enums/LoaderType.js';
1514
export { ToolbarDesign } from './enums/ToolbarDesign.js';
1615
export { ToolbarStyle } from './enums/ToolbarStyle.js';
17-
export const version = pkgJson.version;

packages/main/src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import pkgJson from '../package.json';
21
import * as AnalyticalTableHooks from './components/AnalyticalTable/pluginHooks/AnalyticalTableHooks.js';
32

43
export * from './components/ActionSheet/index.js';
@@ -38,4 +37,3 @@ export type { CommonProps, Ui5CustomEvent, Ui5DomRef, UI5WCSlotsNode, Nullable }
3837
export * from './webComponents/index.js';
3938

4039
export { AnalyticalTableHooks };
41-
export const version = pkgJson.version;

0 commit comments

Comments
 (0)