Skip to content

Commit

Permalink
Restore types package export (#14)
Browse files Browse the repository at this point in the history
Removed in 05c261f#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L31

Fixes typescript error
> error TS7016: Could not find a declaration file for module '@discoveryjs/json-ext'. '.../node_modules/@discoveryjs/json-ext/src/index.js' implicitly has an 'any' type.
>  There are types at '.../node_modules/@discoveryjs/json-ext/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@discoveryjs/json-ext' library may need to update its package.json or typings.
  • Loading branch information
andyjy authored Oct 24, 2024
1 parent 6614e75 commit f6a6a87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"exports": {
".": {
"require": "./cjs/index.cjs",
"import": "./src/index.js"
"import": "./src/index.js",
"types": "./index.d.ts"
},
"./dist/*": "./dist/*",
"./package.json": "./package.json"
Expand Down

0 comments on commit f6a6a87

Please sign in to comment.