From 58ba0607ada5c939d9196829347a9ff157c8ac0d Mon Sep 17 00:00:00 2001 From: Charlie Lye Date: Thu, 14 Dec 2023 00:48:31 +0000 Subject: [PATCH] fix: There is no main.js (#3691) For some reason there was a default export to main.js for aztec.js. This caused an issue for someone externally, I'm not sure why it only triggered since last release, where the root exports were explicitly moved into a "." block. Regardless, it seems the appropriate thing is just always export `./dest/index.js`. --- yarn-project/aztec.js/package.json | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/yarn-project/aztec.js/package.json b/yarn-project/aztec.js/package.json index 007f54fbb1b..64e7ef03554 100644 --- a/yarn-project/aztec.js/package.json +++ b/yarn-project/aztec.js/package.json @@ -4,11 +4,7 @@ "version": "0.1.0", "type": "module", "exports": { - ".": { - "node": "./dest/index.js", - "import": "./dest/index.js", - "default": "./dest/main.js" - }, + ".": "./dest/index.js", "./interfaces/pxe": "./dest/api/interfaces/pxe.js", "./abi": "./dest/api/abi.js", "./aztec_address": "./dest/api/aztec_address.js",