VulcanJS / vulcan-npm

The full-stack JavaScript App Framework
https://vulcan-docs.vercel.app
MIT License
30 stars 8 forks source link

Use package.json exports when ts support lands in #80

Open eric-burel opened 2 years ago

eric-burel commented 2 years ago

Is your feature request related to a problem? Please describe. @see https://stackoverflow.com/questions/63058081/package-json-with-multiple-entrypoints @see https://blog.mozilla.org/data/2021/04/07/this-week-in-glean-publishing-glean-js/

This would allow us to use index.server.ts files instead of server/index.ts, and get rid of the typesVersions hack we currently use to handle both server and client exports.

Also see this Lerna ticket for the "fake alias" hack: @see https://github.com/lerna/lerna/issues/3006