Skip to content

Commit

Permalink
fix: remove json export from root index files (#6269)
Browse files Browse the repository at this point in the history
JSON imports are not compatible with all frameworks/build tools.
  • Loading branch information
Lukas742 authored Aug 26, 2024
1 parent db286f9 commit a665715
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions packages/base/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import pkgJson from '../package.json';
import * as Device from './Device/index.js';
import * as hooks from './hooks/index.js';
import { I18nStore } from './stores/I18nStore.js';
Expand All @@ -10,4 +9,3 @@ export * from './utils/index.js';
export * from './hooks/index.js';

export { I18nStore, StyleStore, ThemingParameters, Device, hooks };
export const version = pkgJson.version;
2 changes: 0 additions & 2 deletions packages/charts/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import pkgJson from '../package.json';
import { BarChart } from './components/BarChart/BarChart.js';
import { BarChartPlaceholder } from './components/BarChart/Placeholder.js';
import { BulletChart } from './components/BulletChart/BulletChart.js';
Expand Down Expand Up @@ -46,4 +45,3 @@ export {
ColumnChartWithTrendPlaceholder,
TimelineChartPlaceholder
};
export const version = pkgJson.version;
2 changes: 0 additions & 2 deletions packages/compat/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import pkgJson from '../package.json';
export * from './components/Loader/index.js';
export * from './components/OverflowToolbarButton/index.js';
export * from './components/OverflowToolbarToggleButton/index.js';
Expand All @@ -14,4 +13,3 @@ export * from './components/ToolbarSpacer/index.js';
export { LoaderType } from './enums/LoaderType.js';
export { ToolbarDesign } from './enums/ToolbarDesign.js';
export { ToolbarStyle } from './enums/ToolbarStyle.js';
export const version = pkgJson.version;
2 changes: 0 additions & 2 deletions packages/main/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import pkgJson from '../package.json';
import * as AnalyticalTableHooks from './components/AnalyticalTable/pluginHooks/AnalyticalTableHooks.js';

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

export { AnalyticalTableHooks };
export const version = pkgJson.version;

0 comments on commit a665715

Please sign in to comment.