vovaspace / brandi

The dependency injection container powered by TypeScript.
https://brandi.js.org
ISC License
193 stars 12 forks source link

Add types path to package exports #31

Closed polerin closed 1 year ago

polerin commented 1 year ago

This is due to TS ignoring the typings top level key when consuming projects use "moduleResolution": "NodeNext" to import from a package with an "exports": {...} entry.

This is unfortunately a fairly high priority merge for us as it is a blocking issue. Tested locally inside of my nodeModules. As an aside, it also works if you delete the exports key, but I believe this is a good thing to have as it is more nuanced and future proof.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
brandi ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 25, 2023 at 0:18AM (UTC)