This PR fixes the following entrypoints to Thyseus:
thyseus/types, which exports Thyseus types declared in the global scope
thyseus/descriptors, which exports built-in system parameter descriptors
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.
This PR fixes the following entrypoints to Thyseus:
thyseus/types
, which exports Thyseus types declared in the global scopethyseus/descriptors
, which exports built-in system parameter descriptorsThese entrypoints were originally defined within the package.json's
exports
field, but in order forexports
to work with TypeScript, the package consumer must set their tsconfig's--moduleResolution
tonode16
ornodenext
, which is not ideal for obvious reasons. See the original issue (locked for bad behavior) and the follow-up issue that describes themoduleResolution
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.