diff --git a/yarn-project/accounts/package.json b/yarn-project/accounts/package.json index 4888de8dbf21..6c0cfdbf5795 100644 --- a/yarn-project/accounts/package.json +++ b/yarn-project/accounts/package.json @@ -5,11 +5,26 @@ "version": "0.1.0", "type": "module", "exports": { - "./defaults": "./dest/defaults/index.js", - "./ecdsa": "./dest/ecdsa/index.js", - "./schnorr": "./dest/schnorr/index.js", - "./single_key": "./dest/single_key/index.js", - "./testing": "./dest/testing/index.js" + "./defaults": { + "bun": "./src/defaults/index.ts", + "default": "./dest/defaults/index.js" + }, + "./ecdsa": { + "bun": "./src/ecdsa/index.ts", + "default": "./dest/ecdsa/index.js" + }, + "./schnorr": { + "bun": "./src/schnorr/index.ts", + "default": "./dest/schnorr/index.js" + }, + "./single_key": { + "bun": "./src/single_key/index.ts", + "default": "./dest/single_key/index.js" + }, + "./testing": { + "bun": "./src/testing/index.ts", + "default": "./dest/testing/index.js" + } }, "typedocOptions": { "entryPoints": [ diff --git a/yarn-project/archiver/package.json b/yarn-project/archiver/package.json index f6b5637d66c0..e38c7dd96f97 100644 --- a/yarn-project/archiver/package.json +++ b/yarn-project/archiver/package.json @@ -2,7 +2,10 @@ "name": "@aztec/archiver", "version": "0.1.0", "type": "module", - "exports": "./dest/index.js", + "exports": { + "bun": "./src/index.ts", + "default": "./dest/index.js" + }, "typedocOptions": { "entryPoints": [ "./src/index.ts" diff --git a/yarn-project/aztec-node/package.json b/yarn-project/aztec-node/package.json index f49c5c589201..578dd011b1ce 100644 --- a/yarn-project/aztec-node/package.json +++ b/yarn-project/aztec-node/package.json @@ -3,7 +3,10 @@ "version": "0.1.0", "main": "dest/index.js", "type": "module", - "exports": "./dest/index.js", + "exports": { + "bun": "./src/index.ts", + "default": "./dest/index.js" + }, "bin": "./dest/bin/index.js", "typedocOptions": { "entryPoints": [ diff --git a/yarn-project/aztec.js/package.json b/yarn-project/aztec.js/package.json index bcaa7ac78a5c..c04ad6eb87cc 100644 --- a/yarn-project/aztec.js/package.json +++ b/yarn-project/aztec.js/package.json @@ -4,21 +4,66 @@ "version": "0.1.0", "type": "module", "exports": { - ".": "./dest/index.js", - "./interfaces/pxe": "./dest/api/interfaces/pxe.js", - "./abi": "./dest/api/abi.js", - "./account": "./dest/api/account.js", - "./aztec_address": "./dest/api/aztec_address.js", - "./deployment": "./dest/api/deployment.js", - "./entrypoint": "./dest/api/entrypoint.js", - "./eth_address": "./dest/api/eth_address.js", - "./ethereum": "./dest/api/ethereum.js", - "./fee": "./dest/api/fee.js", - "./fields": "./dest/api/fields.js", - "./init": "./dest/api/init.js", - "./log_id": "./dest/api/log_id.js", - "./tx_hash": "./dest/api/tx_hash.js", - "./wallet": "./dest/api/wallet.js" + ".": { + "bun": "./src/index.ts", + "default": "./dest/index.js" + }, + "./interfaces/pxe": { + "bun": "./src/api/interfaces/pxe.ts", + "default": "./dest/api/interfaces/pxe.js" + }, + "./abi": { + "bun": "./src/api/abi.ts", + "default": "./dest/api/abi.js" + }, + "./account": { + "bun": "./src/api/account.ts", + "default": "./dest/api/account.js" + }, + "./aztec_address": { + "bun": "./src/api/aztec_address.ts", + "default": "./dest/api/aztec_address.js" + }, + "./deployment": { + "bun": "./src/api/deployment.ts", + "default": "./dest/api/deployment.js" + }, + "./entrypoint": { + "bun": "./src/api/entrypoint.ts", + "default": "./dest/api/entrypoint.js" + }, + "./eth_address": { + "bun": "./src/api/eth_address.ts", + "default": "./dest/api/eth_address.js" + }, + "./ethereum": { + "bun": "./src/api/ethereum.ts", + "default": "./dest/api/ethereum.js" + }, + "./fee": { + "bun": "./src/api/fee.ts", + "default": "./dest/api/fee.js" + }, + "./fields": { + "bun": "./src/api/fields.ts", + "default": "./dest/api/fields.js" + }, + "./init": { + "bun": "./src/api/init.ts", + "default": "./dest/api/init.js" + }, + "./log_id": { + "bun": "./src/api/log_id.ts", + "default": "./dest/api/log_id.js" + }, + "./tx_hash": { + "bun": "./src/api/tx_hash.ts", + "default": "./dest/api/tx_hash.js" + }, + "./wallet": { + "bun": "./src/api/wallet.ts", + "default": "./dest/api/wallet.js" + } }, "typedocOptions": { "entryPoints": [ diff --git a/yarn-project/aztec/package.json b/yarn-project/aztec/package.json index 2ea20e7b6f7b..690e851d8a04 100644 --- a/yarn-project/aztec/package.json +++ b/yarn-project/aztec/package.json @@ -3,7 +3,10 @@ "version": "0.32.0", "type": "module", "exports": { - ".": "./dest/index.js" + ".": { + "bun": "./src/index.ts", + "default": "./dest/index.js" + } }, "bin": "./dest/bin/index.js", "typedocOptions": { diff --git a/yarn-project/circuit-types/package.json b/yarn-project/circuit-types/package.json index fbf2b25be3b5..0992fd2029e9 100644 --- a/yarn-project/circuit-types/package.json +++ b/yarn-project/circuit-types/package.json @@ -3,12 +3,30 @@ "version": "0.1.0", "type": "module", "exports": { - ".": "./dest/index.js", - "./stats": "./dest/stats/index.js", - "./jest": "./dest/jest/index.js", - "./interfaces": "./dest/interfaces/index.js", - "./log_id": "./dest/logs/log_id.js", - "./tx_hash": "./dest/tx/tx_hash.js" + ".": { + "bun": "./src/index.ts", + "default": "./dest/index.js" + }, + "./stats": { + "bun": "./src/stats/index.ts", + "default": "./dest/stats/index.js" + }, + "./jest": { + "bun": "./src/jest/index.ts", + "default": "./dest/jest/index.js" + }, + "./interfaces": { + "bun": "./src/interfaces/index.ts", + "default": "./dest/interfaces/index.js" + }, + "./log_id": { + "bun": "./src/logs/log_id.ts", + "default": "./dest/logs/log_id.js" + }, + "./tx_hash": { + "bun": "./src/tx/tx_hash.ts", + "default": "./dest/tx/tx_hash.js" + } }, "typedocOptions": { "entryPoints": [ diff --git a/yarn-project/end-to-end/package.json b/yarn-project/end-to-end/package.json index bf49a0c8b387..e8218fa57cf3 100644 --- a/yarn-project/end-to-end/package.json +++ b/yarn-project/end-to-end/package.json @@ -2,7 +2,10 @@ "name": "@aztec/end-to-end", "version": "0.0.0", "type": "module", - "exports": "./dest/index.js", + "exports": { + "bun": "./src/index.ts", + "default": "./dest/index.js" + }, "scripts": { "build": "yarn clean && tsc -b && webpack", "build:e2e": "yarn clean && tsc -b", diff --git a/yarn-project/entrypoints/package.json b/yarn-project/entrypoints/package.json index 586e59570b5c..5b75bd0aa968 100644 --- a/yarn-project/entrypoints/package.json +++ b/yarn-project/entrypoints/package.json @@ -5,9 +5,18 @@ "version": "0.1.0", "type": "module", "exports": { - "./dapp": "./dest/dapp_entrypoint.js", - "./account": "./dest/account_entrypoint.js", - "./multi-call": "./dest/multi_call_entrypoint.js" + "./dapp": { + "bun": "./src/dapp_entrypoint.ts", + "default": "./dest/dapp_entrypoint.js" + }, + "./account": { + "bun": "./src/account_entrypoint.ts", + "default": "./dest/account_entrypoint.js" + }, + "./multi-call": { + "bun": "./src/multi_call_entrypoint.ts", + "default": "./dest/multi_call_entrypoint.js" + } }, "typedocOptions": { "entryPoints": [ diff --git a/yarn-project/ethereum/package.json b/yarn-project/ethereum/package.json index 6cb69e9451f6..74c0a74aa770 100644 --- a/yarn-project/ethereum/package.json +++ b/yarn-project/ethereum/package.json @@ -2,7 +2,10 @@ "name": "@aztec/ethereum", "version": "0.1.0", "type": "module", - "exports": "./dest/index.js", + "exports": { + "bun": "./src/index.ts", + "default": "./dest/index.js" + }, "typedocOptions": { "entryPoints": [ "./src/index.ts" diff --git a/yarn-project/key-store/package.json b/yarn-project/key-store/package.json index d3283515ac1d..dbe2426f41a5 100644 --- a/yarn-project/key-store/package.json +++ b/yarn-project/key-store/package.json @@ -2,7 +2,10 @@ "name": "@aztec/key-store", "version": "0.1.0", "type": "module", - "exports": "./dest/index.js", + "exports": { + "bun": "./src/index.ts", + "default": "./dest/index.js" + }, "typedocOptions": { "entryPoints": [ "./src/index.ts" diff --git a/yarn-project/kv-store/package.json b/yarn-project/kv-store/package.json index 32aaaca24cf5..f1e369a89069 100644 --- a/yarn-project/kv-store/package.json +++ b/yarn-project/kv-store/package.json @@ -3,10 +3,22 @@ "version": "0.1.0", "type": "module", "exports": { - ".": "./dest/interfaces/index.js", - "./lmdb": "./dest/lmdb/index.js", - "./mem": "./dest/mem/index.js", - "./utils": "./dest/utils.js" + ".": { + "bun": "./src/interfaces/index.ts", + "default": "./dest/interfaces/index.js" + }, + "./lmdb": { + "bun": "./src/lmdb/index.ts", + "default": "./dest/lmdb/index.js" + }, + "./mem": { + "bun": "./src/mem/index.ts", + "default": "./dest/mem/index.js" + }, + "./utils": { + "bun": "./src/utils.ts", + "default": "./dest/utils.js" + } }, "scripts": { "build": "yarn clean && tsc -b", diff --git a/yarn-project/l1-artifacts/package.json b/yarn-project/l1-artifacts/package.json index 5bf298bbb3c0..1f075b2a777e 100644 --- a/yarn-project/l1-artifacts/package.json +++ b/yarn-project/l1-artifacts/package.json @@ -3,7 +3,10 @@ "version": "0.1.0", "type": "module", "exports": { - ".": "./dest/index.js" + ".": { + "bun": "./generated/index.ts", + "default": "./dest/index.js" + } }, "typedocOptions": { "entryPoints": "./generated/index.ts", diff --git a/yarn-project/merkle-tree/package.json b/yarn-project/merkle-tree/package.json index 75bb7b0e2bf1..305e7cf7c332 100644 --- a/yarn-project/merkle-tree/package.json +++ b/yarn-project/merkle-tree/package.json @@ -2,7 +2,10 @@ "name": "@aztec/merkle-tree", "version": "0.1.0", "type": "module", - "exports": "./dest/index.js", + "exports": { + "bun": "./src/index.ts", + "default": "./dest/index.js" + }, "typedocOptions": { "entryPoints": [ "./src/index.ts" diff --git a/yarn-project/noir-compiler/package.json b/yarn-project/noir-compiler/package.json index 3f0703c31342..7af8a9b18d01 100644 --- a/yarn-project/noir-compiler/package.json +++ b/yarn-project/noir-compiler/package.json @@ -3,8 +3,14 @@ "version": "0.1.0", "type": "module", "exports": { - ".": "./dest/index.js", - "./cli": "./dest/cli/index.js" + ".": { + "bun": "./src/index.ts", + "default": "./dest/index.js" + }, + "./cli": { + "bun": "./src/cli/index.ts", + "default": "./dest/cli/index.js" + } }, "typedocOptions": { "entryPoints": [ diff --git a/yarn-project/noir-contracts.js/package.json b/yarn-project/noir-contracts.js/package.json index b8c6324b1c3d..3c29de035fdf 100644 --- a/yarn-project/noir-contracts.js/package.json +++ b/yarn-project/noir-contracts.js/package.json @@ -3,9 +3,18 @@ "version": "0.1.0", "type": "module", "exports": { - ".": "./dest/src/index.js", - "./artifacts/*": "./dest/artifacts/*.json", - "./*": "./dest/src/*.js" + ".": { + "bun": "./src/index.ts", + "default": "./dest/src/index.js" + }, + "./artifacts/*": { + "bun": "./artifacts/*.json", + "default": "./dest/artifacts/*.json" + }, + "./*": { + "bun": "./src/*.ts", + "default": "./dest/src/*.js" + } }, "scripts": { "build": "yarn clean && yarn generate", diff --git a/yarn-project/noir-protocol-circuits-types/package.json b/yarn-project/noir-protocol-circuits-types/package.json index 0656a50551bc..1fcba9e717a3 100644 --- a/yarn-project/noir-protocol-circuits-types/package.json +++ b/yarn-project/noir-protocol-circuits-types/package.json @@ -3,8 +3,14 @@ "version": "0.1.0", "type": "module", "exports": { - ".": "./dest/index.js", - "./types": "./dest/types/index.js" + ".": { + "bun": "./src/index.ts", + "default": "./dest/index.js" + }, + "./types": { + "bun": "./src/types/index.ts", + "default": "./dest/types/index.js" + } }, "scripts": { "build": "yarn clean && yarn generate && tsc -b", diff --git a/yarn-project/p2p-bootstrap/package.json b/yarn-project/p2p-bootstrap/package.json index 8853e898b119..05ab6aa03ea3 100644 --- a/yarn-project/p2p-bootstrap/package.json +++ b/yarn-project/p2p-bootstrap/package.json @@ -2,7 +2,10 @@ "name": "@aztec/p2p-bootstrap", "version": "0.1.0", "type": "module", - "exports": "./dest/index.js", + "exports": { + "bun": "./src/index.ts", + "default": "./dest/index.js" + }, "typedocOptions": { "entryPoints": [ "./src/index.ts" diff --git a/yarn-project/p2p/package.json b/yarn-project/p2p/package.json index 1e4aab4e5efb..26440d1feac4 100644 --- a/yarn-project/p2p/package.json +++ b/yarn-project/p2p/package.json @@ -2,7 +2,10 @@ "name": "@aztec/p2p", "version": "0.0.0", "type": "module", - "exports": "./dest/index.js", + "exports": { + "bun": "./src/index.ts", + "default": "./dest/index.js" + }, "typedocOptions": { "entryPoints": [ "./src/index.ts" diff --git a/yarn-project/protocol-contracts/package.json b/yarn-project/protocol-contracts/package.json index 7bd6ed8c27d8..4980474eea37 100644 --- a/yarn-project/protocol-contracts/package.json +++ b/yarn-project/protocol-contracts/package.json @@ -5,8 +5,14 @@ "version": "0.1.0", "type": "module", "exports": { - ".": "./dest/index.js", - "./*": "./dest/*/index.js" + ".": { + "bun": "./src/index.ts", + "default": "./dest/index.js" + }, + "./*": { + "bun": "./src/*/index.ts", + "default": "./dest/*/index.js" + } }, "typedocOptions": { "entryPoints": [ diff --git a/yarn-project/prover-client/package.json b/yarn-project/prover-client/package.json index a1b03a697752..5969ef1bb23c 100644 --- a/yarn-project/prover-client/package.json +++ b/yarn-project/prover-client/package.json @@ -2,7 +2,10 @@ "name": "@aztec/prover-client", "version": "0.1.0", "type": "module", - "exports": "./dest/index.js", + "exports": { + "bun": "./src/index.ts", + "default": "./dest/index.js" + }, "typedocOptions": { "entryPoints": [ "./src/index.ts" diff --git a/yarn-project/pxe/package.json b/yarn-project/pxe/package.json index 8a28a6da9676..53e7da265edf 100644 --- a/yarn-project/pxe/package.json +++ b/yarn-project/pxe/package.json @@ -2,7 +2,10 @@ "name": "@aztec/pxe", "version": "0.1.0", "type": "module", - "exports": "./dest/index.js", + "exports": { + "bun": "./src/index.ts", + "default": "./dest/index.js" + }, "bin": "./dest/bin/index.js", "typedocOptions": { "entryPoints": [ diff --git a/yarn-project/scripts/package.json b/yarn-project/scripts/package.json index 154b80198a52..e51519a6a80d 100644 --- a/yarn-project/scripts/package.json +++ b/yarn-project/scripts/package.json @@ -3,7 +3,10 @@ "private": true, "version": "0.1.0", "type": "module", - "exports": "./dest/index.js", + "exports": { + "bun": "./src/index.ts", + "default": "./dest/index.js" + }, "bin": { "bench-aggregate": "./dest/bin/bench-aggregate.js", "bench-comment": "./dest/bin/bench-comment.js", diff --git a/yarn-project/sequencer-client/package.json b/yarn-project/sequencer-client/package.json index 76801f120d29..c6422d9e1915 100644 --- a/yarn-project/sequencer-client/package.json +++ b/yarn-project/sequencer-client/package.json @@ -2,7 +2,10 @@ "name": "@aztec/sequencer-client", "version": "0.1.0", "type": "module", - "exports": "./dest/index.js", + "exports": { + "bun": "./src/index.ts", + "default": "./dest/index.js" + }, "typedocOptions": { "entryPoints": [ "./src/index.ts" diff --git a/yarn-project/simulator/package.json b/yarn-project/simulator/package.json index 3999470cf4db..ffb6de04b238 100644 --- a/yarn-project/simulator/package.json +++ b/yarn-project/simulator/package.json @@ -2,7 +2,10 @@ "name": "@aztec/simulator", "version": "0.1.0", "type": "module", - "exports": "./dest/index.js", + "exports": { + "bun": "./src/index.ts", + "default": "./dest/index.js" + }, "typedocOptions": { "entryPoints": [ "./src/index.ts" diff --git a/yarn-project/types/package.json b/yarn-project/types/package.json index 724ff7853dd3..5b9ab6c6010e 100644 --- a/yarn-project/types/package.json +++ b/yarn-project/types/package.json @@ -6,11 +6,26 @@ "main": "./dest/index.js", "types": "./dest/index.d.ts", "exports": { - "./abi": "./dest/abi/index.js", - "./contracts": "./dest/contracts/index.js", - "./interfaces": "./dest/interfaces/index.js", - "./membership": "./dest/sibling-path/index.js", - "./noir": "./dest/noir/index.js" + "./abi": { + "bun": "./src/abi/index.ts", + "default": "./dest/abi/index.js" + }, + "./contracts": { + "bun": "./src/contracts/index.ts", + "default": "./dest/contracts/index.js" + }, + "./interfaces": { + "bun": "./src/interfaces/index.ts", + "default": "./dest/interfaces/index.js" + }, + "./membership": { + "bun": "./src/sibling-path/index.ts", + "default": "./dest/sibling-path/index.js" + }, + "./noir": { + "bun": "./src/noir/index.ts", + "default": "./dest/noir/index.js" + } }, "scripts": { "build": "yarn clean && yarn generate && tsc -b", diff --git a/yarn-project/world-state/package.json b/yarn-project/world-state/package.json index e65cae9fcc1c..835c61002e0e 100644 --- a/yarn-project/world-state/package.json +++ b/yarn-project/world-state/package.json @@ -2,7 +2,10 @@ "name": "@aztec/world-state", "version": "0.1.0", "type": "module", - "exports": "./dest/index.js", + "exports": { + "bun": "./src/index.ts", + "default": "./dest/index.js" + }, "typedocOptions": { "entryPoints": [ "./src/index.ts"