diff --git a/package.json b/package.json index e67105a7..a172150f 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "@types/jest": "^29.5.3", "@types/testing-library__jest-dom": "5.14.8", "axios": "^0.27.0", + "clean-package": "^2.2.0", "eslint-plugin-testing-library": "5.5.1", "ethers": "^5.7.0", "jest": "^29.6.2", diff --git a/packages/chakra-components/package.json b/packages/chakra-components/package.json index 2850beac..5f90b483 100644 --- a/packages/chakra-components/package.json +++ b/packages/chakra-components/package.json @@ -18,7 +18,7 @@ ], "scripts": { "lint": "tsc", - "build": "tsup src --dts", + "build": "tsup --config ../tsup.config.ts", "prepack": "clean-package", "clean": "rm -rf dist .turbo node_modules", "postpack": "mv -fv package.json.backup package.json" @@ -82,7 +82,6 @@ "@types/react": "^18.0.30", "@types/react-dom": "^18.0.11", "@vocdoni/sdk": "~0.8.2", - "clean-package": "^2.2.0", "date-fns": "^2.29.3", "eslint": "^8.42.0", "eslint-config-prettier": "^8.8.0", diff --git a/packages/extended-sdk/package.json b/packages/extended-sdk/package.json index d53b1501..cf361410 100644 --- a/packages/extended-sdk/package.json +++ b/packages/extended-sdk/package.json @@ -18,7 +18,7 @@ ], "scripts": { "lint": "tsc", - "build": "tsup src --dts", + "build": "tsup --config ../tsup.config.ts", "prepack": "clean-package", "clean": "rm -rf dist .turbo node_modules", "postpack": "mv -fv package.json.backup package.json" diff --git a/packages/rainbowkit-wallets/package.json b/packages/rainbowkit-wallets/package.json index 1c08222d..4f1d4faa 100644 --- a/packages/rainbowkit-wallets/package.json +++ b/packages/rainbowkit-wallets/package.json @@ -12,7 +12,7 @@ ], "scripts": { "lint": "tsc", - "build": "tsup src --dts", + "build": "tsup --config ../tsup.config.ts", "prepack": "clean-package", "clean": "rm -rf dist .turbo node_modules", "postpack": "mv -fv package.json.backup package.json" @@ -20,14 +20,15 @@ "peerDependencies": { "@rainbow-me/rainbowkit": "^1.2.0", "@wagmi/core": "^1.4.6", - "wagmi": "^1.4.6" + "wagmi": "^1.4.6", + "react": "^0.14.0 || ^15.0.0 || ^16 || ^17 || ^18", + "react-dom": "^0.14.0 || ^15.0.0 || ^16 || ^17 || ^18" }, "devDependencies": { "@rainbow-me/rainbowkit": "^1.2.0", "@types/crypto-js": "^4.2.2", "@types/react-modal": "^3.16.0", "@wagmi/core": "^1.4.6", - "clean-package": "^2.2.0", "localforage": "^1.10.0", "react-modal": "^3.16.1", "tsconfig": "*", diff --git a/packages/react-providers/package.json b/packages/react-providers/package.json index 283538fa..27a1f97a 100644 --- a/packages/react-providers/package.json +++ b/packages/react-providers/package.json @@ -18,7 +18,7 @@ ], "scripts": { "lint": "tsc", - "build": "tsup src --dts", + "build": "tsup --config ../tsup.config.ts", "prepack": "clean-package", "clean": "rm -rf dist .turbo node_modules", "postpack": "mv -fv package.json.backup package.json" diff --git a/packages/tsup.config.ts b/packages/tsup.config.ts index 3111fe26..140809e1 100644 --- a/packages/tsup.config.ts +++ b/packages/tsup.config.ts @@ -3,5 +3,7 @@ import { defineConfig } from 'tsup' export default defineConfig({ format: ['cjs', 'esm'], target: 'esnext', + dts: true, sourcemap: false, + entry: ['src/index.ts'], })