Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@
"url": "https://github.com/api3dao/data-feed-proxy-combinators.git"
},
"private": false,
"main": "dist/src/index",
"types": "dist/src/index",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
"files": [
"vendor",
"contracts",
"typechain-types",
"dist"
],
"exports": {
".": "./dist/src/index.js"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mhh, won't this cause the JS imports not to work for any non index.js file? 🤔 I forgot how exactly the exports works.

Copy link
Collaborator Author

@acenolaza acenolaza Oct 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is correct but my intention was to have a single entrypoint to act as the primary public API for the package. So if we need to expose more functions from other files then we make the index.ts file re-export it without the need to come an update the package.json file

},
"scripts": {
"build": "pnpm build:hardhat && tsc -p tsconfig.build.json",
"build:hardhat": "hardhat --config hardhat.build.config.ts compile",
Expand Down
Loading