JaimeGensler / thyseus

An archetypal Entity Component System, built entirely in Typescript
MIT License
74 stars 3 forks source link

Fix package exports #1

Closed 3mcd closed 1 year ago

3mcd commented 1 year ago

This PR fixes the following entrypoints to Thyseus:

These entrypoints were originally defined within the package.json's exports field, but in order for exports to work with TypeScript, the package consumer must set their tsconfig's --moduleResolution to node16 or nodenext, which is not ideal for obvious reasons. See the original issue (locked for bad behavior) and the follow-up issue that describes the moduleResolution workaround outlined above.

This PR instead adds two new sub-packages (subdirectories) each with their own package.json that point to their exports via main/module/types fields.