Closed patricklizon closed 10 months ago
Hey, very sorry. I get so inundated with so many Github emails from work and this repo sat silent for so long that I just lost track of it entirely. Thank you for your addition, and I don't think there's any risk with it.
Notably, I was following TypeScripts recommendation for how to expose types from the package.json
file.
https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html
This has been working for TypeScript itself and for Deno's compiler. But if Webpack has special constraints, I have no problem merging this in and running a release.
Hello 👋🏻
This PR fixes
exports
definition inpackage.json
files.When importing package TS is not able to resolve the path to the file with types declaration.
That results in following error:
Webpack docs on package exports: https://webpack.js.org/guides/package-exports/