diff --git a/clean-package.config.json b/clean-package.config.json index 0c2b17dc..96c50329 100644 --- a/clean-package.config.json +++ b/clean-package.config.json @@ -16,5 +16,5 @@ "./package.json": "./package.json" } }, - "remove": ["clean-package"] + "remove": ["clean-package", "peerDependencies"] } \ No newline at end of file diff --git a/package.json b/package.json index 6d768fb5..8f1d1220 100644 --- a/package.json +++ b/package.json @@ -76,6 +76,32 @@ "limit": "2 MB" } ], + "peerDependencies": { + "@ethersproject/abstract-signer": "^5.7.0", + "@ethersproject/address": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/keccak256": "^5.7.0", + "@ethersproject/providers": "^5.7.1", + "@ethersproject/signing-key": "^5.7.0", + "@ethersproject/strings": "^5.7.0", + "@ethersproject/units": "^5.7.0", + "@ethersproject/wallet": "^5.7.0", + "@size-limit/file": "^8.2.4", + "@vocdoni/proto": "1.15.8", + "axios": "0.28.1", + "blake2b": "^2.1.4", + "buffer": "^6.0.3", + "iso-language-codes": "^1.1.0", + "js-sha256": "^0.10.1", + "readable-stream": "^4.4.2", + "tiny-invariant": "^1.3.1", + "tweetnacl": "^1.0.3", + "wasmbuilder": "^0.0.16", + "wasmcurves": "0.2.1", + "web-worker": "^1.2.0", + "yup": "^0.32.11" + }, "devDependencies": { "@rollup/plugin-commonjs": "^25.0.7", "@rollup/plugin-json": "^6.0.0", @@ -120,11 +146,14 @@ "@size-limit/file": "^8.2.4", "@vocdoni/proto": "1.15.8", "axios": "0.28.1", + "blindsecp256k1": "^0.0.9", "blake2b": "^2.1.4", "buffer": "^6.0.3", + "circomlibjs": "^0.1.7", "iso-language-codes": "^1.1.0", "js-sha256": "^0.10.1", "readable-stream": "^4.4.2", + "snarkjs": "vocdoni/snarkjs#v0.7.0-groth16browser", "tiny-invariant": "^1.3.1", "tweetnacl": "^1.0.3", "wasmbuilder": "^0.0.16", diff --git a/rollup.config.mjs b/rollup.config.mjs index 4fc7729d..659662fe 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -13,7 +13,7 @@ const name = pkg.output; const bundle = (config) => ({ ...config, input: pkg.main, - external: [...Object.keys(pkg.dependencies), '@vocdoni/proto/vochain'], + external: [...Object.keys(pkg.peerDependencies), '@vocdoni/proto/vochain'], }); export default [