Skip to content

Commit

Permalink
fix : types folder removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhruv-2003 committed Mar 4, 2023
1 parent 97fe877 commit 32dbcf3
Show file tree
Hide file tree
Showing 19 changed files with 8 additions and 5,463 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
"description": "A token gating SDK to restrict access to Next and React Application for NFT and Token Holders",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"type": "module",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"rollup": "rollup -c",
"rollup": "rollup -c --bundleConfigAsCjs",
"build": "rm -rf dist/ && npm run build:esm && npm run build:cjs",
"build:esm": "tsc",
"build:cjs": "tsc --moudle CommonJS --outDir dist/cjs"
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default [
{
input: "dist/esm/types/index.d.ts",
output: [{ file: "dist/index.d.ts", format: "esm" }],
plugins: [dts()],
plugins: [dts.default()],

external: [/\.css$/],
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/nextWrapper/nextWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { publicProvider } from "wagmi/providers/public";
import { useState, useEffect } from "react";
import { useRouter } from "next/router";
import { Network, Alchemy } from "alchemy-sdk";
import { configDataType, configType, methods } from "../../../types/types";
import { configDataType, configType, methods } from "../config/index";

const API_KEY: any = process.env.ALCHEMY_ID;

Expand Down
2 changes: 1 addition & 1 deletion src/components/reactWrapper/reactWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { publicProvider } from "wagmi/providers/public";
import { useState, useEffect } from "react";
import { useLocation } from "react-router-dom";
import { Network, Alchemy } from "alchemy-sdk";
import { configDataType, configType, methods } from "../../../types/types";
import { configDataType, configType, methods } from "../config/index";

const API_KEY: any = process.env.ALCHEMY_ID;

Expand Down
2 changes: 1 addition & 1 deletion src/components/universalWrapper/universalWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { alchemyProvider } from "wagmi/providers/alchemy";
import { publicProvider } from "wagmi/providers/public";
import { useState, useEffect } from "react";
import { Network, Alchemy } from "alchemy-sdk";
import { configDataType, configType, methods } from "../../../types/types";
import { configDataType, configType, methods } from "../config/index";

const API_KEY: any = process.env.ALCHEMY_ID;

Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"strict": true,

// Added
"rootDir": "src",
"lib": ["ES5", "ES2015", "ES2016", "dom", "ESNext"],
"types": ["node"],
"jsx": "react",
Expand Down
23 changes: 0 additions & 23 deletions types/src/components/config/config.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion types/src/components/config/index.d.ts

This file was deleted.

4 changes: 0 additions & 4 deletions types/src/components/index.d.ts

This file was deleted.

2 changes: 0 additions & 2 deletions types/src/components/nextWrapper/index.d.ts

This file was deleted.

10 changes: 0 additions & 10 deletions types/src/components/nextWrapper/nextWrapper.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion types/src/components/reactWrapper/index.d.ts

This file was deleted.

11 changes: 0 additions & 11 deletions types/src/components/reactWrapper/reactWrapper.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion types/src/components/universalWrapper/index.d.ts

This file was deleted.

11 changes: 0 additions & 11 deletions types/src/components/universalWrapper/universalWrapper.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion types/src/index.d.ts

This file was deleted.

36 changes: 0 additions & 36 deletions types/types.ts

This file was deleted.

25 changes: 0 additions & 25 deletions types/types/types.d.ts

This file was deleted.

Loading

0 comments on commit 32dbcf3

Please sign in to comment.