Skip to content

Commit

Permalink
Merge pull request #99 from privacy-scaling-explorations/chore/types-…
Browse files Browse the repository at this point in the history
…field

New NPM `types` field inside `exports`
  • Loading branch information
cedoor authored Dec 5, 2023
2 parents 2401452 + 806395d commit 2709601
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion packages/groth16/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
3 changes: 2 additions & 1 deletion packages/imt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
3 changes: 2 additions & 1 deletion packages/lazytower/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
3 changes: 2 additions & 1 deletion packages/poseidon-proof/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
3 changes: 2 additions & 1 deletion packages/smt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 2709601

Please sign in to comment.