From cc3fb84eafe617840177a8efd271737fed9a1dcc Mon Sep 17 00:00:00 2001 From: Yashvardhan Jagnani <60016972+jagnani73@users.noreply.github.com> Date: Wed, 28 Feb 2024 00:52:32 +0530 Subject: [PATCH] Yj-fix/types-export (#131) --- src/index.ts | 7 ------- tsconfig.json | 12 ++++++------ vite.config.ts | 8 +------- 3 files changed, 7 insertions(+), 20 deletions(-) diff --git a/src/index.ts b/src/index.ts index 3a2c5cf6f..2db1b60b0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -32,13 +32,6 @@ export { BlockDetails } from "./components/Molecules/BlockDetails/BlockDetails"; export { ChainSelector } from "./components/Molecules/ChainSelector/ChainSelector"; export { GasCard } from "./components/Molecules/GasCard/GasCard"; - -export { type NFTDetailViewProps } from "./utils/types/organisms.types"; -export { type AddressActivityListViewProps } from "./utils/types/organisms.types"; -export { type TokenBalancesListViewProps } from "./utils/types/organisms.types"; -export { type TokenTransfersListViewProps } from "./utils/types/organisms.types"; -export { type NFTWalletTokenListViewProps } from "./utils/types/organisms.types"; -export { type NFTCollectionTokenListViewProps } from "./utils/types/organisms.types"; export { GoldRushProvider, useGoldRush } from "./utils/store"; // * INFO: added for backwards compatibility export { useGoldRush as useCovalent } from "./utils/store"; diff --git a/tsconfig.json b/tsconfig.json index 6168a323b..3d423d9ca 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -23,18 +23,18 @@ "paths": { "@/*": ["./src/*"], "@goldrushconfig": ["./goldrush.config.ts"], - "react-component-library": ["src/index.ts"] + "react-component-library": ["src/index.ts"], }, "typeRoots": [ "./dist/index.d.ts", "node_modules/@types", - "./node_modules" - ] + "./node_modules", + ], }, "include": ["src", "./index.ts"], "references": [ { - "path": "./tsconfig.node.json" - } - ] + "path": "./tsconfig.node.json", + }, + ], } diff --git a/vite.config.ts b/vite.config.ts index ea8c6a5df..d4775de90 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -6,13 +6,7 @@ import tsConfigPaths from "vite-tsconfig-paths"; // import * as packageJson from "./package.json"; export default defineConfig(() => ({ - plugins: [ - react(), - tsConfigPaths(), - dts({ - include: ["./"], - }), - ], + plugins: [react(), tsConfigPaths(), dts()], build: { lib: { entry: resolve("./", "index.ts"),