Skip to content

Commit

Permalink
Yj-fix/types-export (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
jagnani73 authored Feb 27, 2024
1 parent 2032d0b commit cc3fb84
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 20 deletions.
7 changes: 0 additions & 7 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
12 changes: 6 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
],
}
8 changes: 1 addition & 7 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit cc3fb84

Please sign in to comment.