Exporting the types in package.json #2157
-
Shouldn't the types also be exported in the package.json file for each export: https://github.com/cloudscape-design/code-view/blob/main/package.json#L37 This can avoid import errors for different module resolutions: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-7.html#packagejson-exports-imports-and-self-referencing |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
types exports is needed when Did you find any import where this caused you issues? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply. |
Beta Was this translation helpful? Give feedback.
types exports is needed when
.d.ts
file is in a different location than the exportedjs
file, in our source code all type files are in the same location as the js files therefore this shouldn't be needed.Did you find any import where this caused you issues?