Skip to content

Commit

Permalink
Attempt using peerDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
elboletaire committed Aug 6, 2024
1 parent 0dfdd92 commit d6fe8a1
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clean-package.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"./package.json": "./package.json"
}
},
"remove": ["clean-package"]
"remove": ["clean-package", "peerDependencies"]
}
29 changes: 29 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand Down

0 comments on commit d6fe8a1

Please sign in to comment.