@cseitz/exports
v1.0.12
Published
**Requires yarn workspaces** - Only valid yarn workspaces are checked for exports
Downloads
4
Readme
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
.