From 806395d72d6d3623b03eadd8435c6e21d975ffb6 Mon Sep 17 00:00:00 2001 From: cedoor Date: Tue, 5 Dec 2023 15:23:12 +0000 Subject: [PATCH] chore: add types to exports npm field --- packages/groth16/package.json | 3 ++- packages/imt/package.json | 3 ++- packages/lazytower/package.json | 3 ++- packages/poseidon-proof/package.json | 3 ++- packages/smt/package.json | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/packages/groth16/package.json b/packages/groth16/package.json index d7b0cc814..116bc2362 100644 --- a/packages/groth16/package.json +++ b/packages/groth16/package.json @@ -10,7 +10,8 @@ "require": "./dist/index.node.js" }, "browser": "./dist/index.browser.mjs", - "default": "./dist/index.browser.mjs" + "default": "./dist/index.browser.mjs", + "types": "./dist/types/index.d.ts" }, "types": "dist/types/index.d.ts", "files": [ diff --git a/packages/imt/package.json b/packages/imt/package.json index b64e01c3e..2cf4cd5d0 100644 --- a/packages/imt/package.json +++ b/packages/imt/package.json @@ -9,7 +9,8 @@ "main": "dist/index.node.js", "exports": { "import": "./dist/index.mjs", - "require": "./dist/index.node.js" + "require": "./dist/index.node.js", + "types": "./dist/types/index.d.ts" }, "types": "dist/types/index.d.ts", "files": [ diff --git a/packages/lazytower/package.json b/packages/lazytower/package.json index 3ce0078aa..8210a0b82 100644 --- a/packages/lazytower/package.json +++ b/packages/lazytower/package.json @@ -9,7 +9,8 @@ "main": "dist/index.node.js", "exports": { "import": "./dist/index.mjs", - "require": "./dist/index.node.js" + "require": "./dist/index.node.js", + "types": "./dist/types/index.d.ts" }, "types": "dist/types/index.d.ts", "files": [ diff --git a/packages/poseidon-proof/package.json b/packages/poseidon-proof/package.json index 433e140e6..408fe548b 100644 --- a/packages/poseidon-proof/package.json +++ b/packages/poseidon-proof/package.json @@ -10,7 +10,8 @@ "require": "./dist/index.node.js" }, "browser": "./dist/index.browser.mjs", - "default": "./dist/index.browser.mjs" + "default": "./dist/index.browser.mjs", + "types": "./dist/types/index.d.ts" }, "types": "dist/types/index.d.ts", "files": [ diff --git a/packages/smt/package.json b/packages/smt/package.json index 9d745d6b9..1d2c827dc 100644 --- a/packages/smt/package.json +++ b/packages/smt/package.json @@ -14,7 +14,8 @@ "main": "dist/index.node.js", "exports": { "import": "./dist/index.mjs", - "require": "./dist/index.node.js" + "require": "./dist/index.node.js", + "types": "./dist/types/index.d.ts" }, "types": "dist/types/index.d.ts", "files": [