From 0c78ccc4e7f311525d4ea712b79cf532899e2006 Mon Sep 17 00:00:00 2001 From: awkweb Date: Wed, 12 Jan 2022 19:13:21 -0500 Subject: [PATCH] fix: broken module exports (#73) --- .changeset/seven-shoes-battle.md | 5 +++ package.json | 3 +- packages/react/package.json | 12 ++--- pnpm-lock.yaml | 77 -------------------------------- 4 files changed, 13 insertions(+), 84 deletions(-) create mode 100644 .changeset/seven-shoes-battle.md diff --git a/.changeset/seven-shoes-battle.md b/.changeset/seven-shoes-battle.md new file mode 100644 index 0000000000..4ac704e067 --- /dev/null +++ b/.changeset/seven-shoes-battle.md @@ -0,0 +1,5 @@ +--- +'wagmi': patch +--- + +fix module exports diff --git a/package.json b/package.json index 189888a956..c90cde66b2 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,8 @@ "scripts": { "build": "preconstruct build", "build:docs": "manypkg run docs build", + "changeset:release": "pnpm gen:readme && pnpm build && changeset publish", + "changeset:version": "changeset version && pnpm install --lockfile-only", "dev": "preconstruct dev", "dev:docs": "pnpm build && manypkg run docs dev", "dev:example:next": "pnpm build && manypkg run example-next dev", @@ -60,7 +62,6 @@ "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-react-hooks": "^4.3.0", "eslint-plugin-testing-library": "^5.0.1", - "ethereum-abi-types-generator": "^1.3.2", "fs-extra": "^10.0.0", "glob": "^7.2.0", "husky": "^7.0.4", diff --git a/packages/react/package.json b/packages/react/package.json index 1877024548..1c2cb7d84f 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -16,16 +16,16 @@ "default": "./dist/wagmi.cjs.js" }, "./connectors/injected": { - "main": "./connectors/injected/dist/wagmi-connectors-injected.cjs.js", - "module": "./connectors/injected/dist/wagmi-connectors-injected.esm.js" + "module": "./connectors/injected/dist/wagmi-connectors-injected.esm.js", + "default": "./connectors/injected/dist/wagmi-connectors-injected.cjs.js" }, "./connectors/walletConnect": { - "main": "./connectors/walletConnect/dist/wagmi-connectors-walletConnect.cjs.js", - "module": "./connectors/walletConnect/dist/wagmi-connectors-walletConnect.esm.js" + "module": "./connectors/walletConnect/dist/wagmi-connectors-walletConnect.esm.js", + "default": "./connectors/walletConnect/dist/wagmi-connectors-walletConnect.cjs.js" }, "./connectors/walletLink": { - "main": "./connectors/walletLink/dist/wagmi-connectors-walletLink.cjs.js", - "module": "./connectors/walletLink/dist/wagmi-connectors-walletLink.esm.js" + "module": "./connectors/walletLink/dist/wagmi-connectors-walletLink.esm.js", + "default": "./connectors/walletLink/dist/wagmi-connectors-walletLink.cjs.js" } }, "files": [ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index db618a6d38..ae9bb406ac 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -31,7 +31,6 @@ importers: eslint-plugin-prettier: ^4.0.0 eslint-plugin-react-hooks: ^4.3.0 eslint-plugin-testing-library: ^5.0.1 - ethereum-abi-types-generator: ^1.3.2 fs-extra: ^10.0.0 glob: ^7.2.0 husky: ^7.0.4 @@ -69,7 +68,6 @@ importers: eslint-plugin-prettier: 4.0.0_6e6a25a49a944db0fa38418c3ba4bc86 eslint-plugin-react-hooks: 4.3.0_eslint@7.32.0 eslint-plugin-testing-library: 5.0.1_eslint@7.32.0+typescript@4.5.4 - ethereum-abi-types-generator: 1.3.2 fs-extra: 10.0.0 glob: 7.2.0 husky: 7.0.4 @@ -4683,10 +4681,6 @@ packages: resolution: {integrity: sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==} dev: false - /bignumber.js/9.0.2: - resolution: {integrity: sha512-GAcQvbpsM0pUb0zw1EI0KhQEZ+lRwR5fYaAp3vPOYuP7aDvGy6cVN6XHLauvF8SOga2y0dcLcjt3iQDTSEliyw==} - dev: true - /binary-extensions/2.2.0: resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==} engines: {node: '>=8'} @@ -5339,11 +5333,6 @@ packages: resolution: {integrity: sha512-hUewv7oMjCp+wkBv5Rm0v87eJhq4woh5rSR+42YSQJKecCqgIqNkZ6lAlQms/BwHPJA5NKMRlpxPRv0n8HQW6g==} dev: true - /colors/1.4.0: - resolution: {integrity: sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==} - engines: {node: '>=0.1.90'} - dev: true - /combined-stream/1.0.8: resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} engines: {node: '>= 0.8'} @@ -6925,25 +6914,6 @@ packages: ethereumjs-abi: github.com/ethereumjs/ethereumjs-abi/ee3994657fa7a427238e6ba92a84d0b529bbcde0 ethereumjs-util: 5.2.1 - /ethereum-abi-types-generator/1.3.2: - resolution: {integrity: sha512-hoAwuxXYLZpnmBByN8fLLqlY4o5KEI8WSY9g2bC0x83sQVsrihickY1siVVcmjdOa4NPin2Bwtj4vYHcfI2jLQ==} - hasBin: true - dependencies: - '@types/bn.js': 4.11.6 - bignumber.js: 9.0.2 - colors: 1.4.0 - dotenv: 8.6.0 - ethers: 4.0.49 - ethersv5: /ethers/5.5.2 - fs-extra: 9.1.0 - prettier: 2.5.1 - reflect-metadata: 0.1.13 - yargs: 15.4.1 - transitivePeerDependencies: - - bufferutil - - utf-8-validate - dev: true - /ethereum-cryptography/0.1.3: resolution: {integrity: sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==} dependencies: @@ -6985,20 +6955,6 @@ packages: ethjs-util: 0.1.6 rlp: 2.2.7 - /ethers/4.0.49: - resolution: {integrity: sha512-kPltTvWiyu+OktYy1IStSO16i2e7cS9D9OxZ81q2UUaiNPVrm/RTcbxamCXF9VUSKzJIdJV68EAIhTEVBalRWg==} - dependencies: - aes-js: 3.0.0 - bn.js: 4.12.0 - elliptic: 6.5.4 - hash.js: 1.1.3 - js-sha3: 0.5.7 - scrypt-js: 2.0.4 - setimmediate: 1.0.4 - uuid: 2.0.1 - xmlhttprequest: 1.8.0 - dev: true - /ethers/5.5.2: resolution: {integrity: sha512-EF5W+6Wwcu6BqVwpgmyR5U2+L4c1FQzlM/02dkZOugN3KF0cG9bzHZP+TDJglmPm2/IzCEJDT7KBxzayk7SAHw==} dependencies: @@ -7828,13 +7784,6 @@ packages: readable-stream: 3.6.0 safe-buffer: 5.2.1 - /hash.js/1.1.3: - resolution: {integrity: sha512-/UETyP0W22QILqS+6HowevwhEFJ3MBJnwTf75Qob9Wz9t0DPuisL8kW8YZMK62dHAKE1c1p+gY1TtOLY+USEHA==} - dependencies: - inherits: 2.0.4 - minimalistic-assert: 1.0.1 - dev: true - /hash.js/1.1.7: resolution: {integrity: sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==} dependencies: @@ -9088,10 +9037,6 @@ packages: /js-sha256/0.9.0: resolution: {integrity: sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==} - /js-sha3/0.5.7: - resolution: {integrity: sha1-DU/9gALVMzqrr0oj7tL2N0yfKOc=} - dev: true - /js-sha3/0.8.0: resolution: {integrity: sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==} @@ -11672,10 +11617,6 @@ packages: postcss-value-parser: 3.3.1 dev: true - /reflect-metadata/0.1.13: - resolution: {integrity: sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==} - dev: true - /regenerate-unicode-properties/9.0.0: resolution: {integrity: sha512-3E12UeNSPfjrgwjkR81m5J7Aw/T55Tu7nUyZVQYCKEOs+2dkxEY+DpPtZzO4YruuiPb7NkYLVcyJC4+zCbk5pA==} engines: {node: '>=4'} @@ -12060,10 +12001,6 @@ packages: ajv-keywords: 3.5.2_ajv@6.12.6 dev: true - /scrypt-js/2.0.4: - resolution: {integrity: sha512-4KsaGcPnuhtCZQCxFxN3GVYIhKFPTdLd8PLC552XwbMndtD0cjRFAhDuuydXQ0h08ZfPgzqe6EKHozpuH74iDw==} - dev: true - /scrypt-js/3.0.1: resolution: {integrity: sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA==} @@ -12141,10 +12078,6 @@ packages: split-string: 3.1.0 dev: true - /setimmediate/1.0.4: - resolution: {integrity: sha1-IOgd5iLUoCWIzgyNqJc8vPHTE48=} - dev: true - /setimmediate/1.0.5: resolution: {integrity: sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=} @@ -13528,11 +13461,6 @@ packages: which-typed-array: 1.1.7 dev: false - /uuid/2.0.1: - resolution: {integrity: sha1-wqMN7bPlNdcsz4LjQ5QaULqFM6w=} - deprecated: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. - dev: true - /uuid/8.3.2: resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==} hasBin: true @@ -13954,11 +13882,6 @@ packages: resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==} dev: true - /xmlhttprequest/1.8.0: - resolution: {integrity: sha1-Z/4HXFwk/vOfnWX197f+dRcZaPw=} - engines: {node: '>=0.4.0'} - dev: true - /xtend/4.0.2: resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==} engines: {node: '>=0.4'}