@cseitz/exports
TypeScript icon, indicating that this package has built-in type declarations

1.0.12 • Public • Published

Exports

Requires yarn workspaces

  • Only valid yarn workspaces are checked for exports

Searches for /** @export 'import-name' */ in all files in the project.

Automatically populates package.json exports with what it finds.

This allows one to easily define exports for other portions of this project to utilize.

Example

The API has the Authentication service. It defines its own client logic.

One can do /** @export 'auth' */ inside api/src/services/authentication/client.ts.

Then, the app project can import it via api/auth.

Readme

Keywords

none

Package Sidebar

Install

npm i @cseitz/exports

Weekly Downloads

2

Version

1.0.12

License

MIT

Unpacked Size

74.1 kB

Total Files

28

Last publish

Collaborators

  • cseitz