From c487f3e641ff7f88f5b05933a4dcaa8e585e56be Mon Sep 17 00:00:00 2001 From: Antonette Caldwell Date: Thu, 2 Nov 2023 11:50:16 -0500 Subject: [PATCH] fix: export mui datatables Signed-off-by: Antonette Caldwell --- packages/components/package.json | 20 ++++++++----------- .../src/base/DataTable/datatable.tsx | 5 ----- .../components/src/base/DataTable/index.tsx | 2 +- 3 files changed, 9 insertions(+), 18 deletions(-) delete mode 100644 packages/components/src/base/DataTable/datatable.tsx diff --git a/packages/components/package.json b/packages/components/package.json index 935afa0f..88a26d44 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -3,7 +3,13 @@ "version": "0.8.1-beta.1", "description": "Reusable React Components", "type": "module", - "main": "./dist/index.js", + "exports": { + ".": { + "import": "./dist/index.es.js", + "require": "./dist/index.cjs.js" + } + }, + "main": "./dist/index.cjs.js", "module": "./dist/index.es.js", "types": "./dist/index.d.ts", "files": [ @@ -70,16 +76,6 @@ "@layer5/sistent-svg": "0.11.1-beta.0" }, "publishConfig": { - "access": "public", - "exports": { - ".": { - "import": "./dist/index.es.js", - "require": "./dist/index.cjs.js", - "default": "./dist/index.js" - } - }, - "main": "./dist/index.cjs.js", - "module": "./dist/index.es.js", - "types": "./dist/index.d.ts" + "access": "public" } } diff --git a/packages/components/src/base/DataTable/datatable.tsx b/packages/components/src/base/DataTable/datatable.tsx deleted file mode 100644 index fa9f7ae3..00000000 --- a/packages/components/src/base/DataTable/datatable.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import { MUIDataTable, type MUIDataTableProps } from 'mui-datatables'; - -export const DataTable = (props: MUIDataTableProps) => { - return ; -}; diff --git a/packages/components/src/base/DataTable/index.tsx b/packages/components/src/base/DataTable/index.tsx index c931d8cc..ad7acece 100644 --- a/packages/components/src/base/DataTable/index.tsx +++ b/packages/components/src/base/DataTable/index.tsx @@ -1 +1 @@ -export { DataTable } from './datatable'; +export * from 'mui-datatables';