Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use exports field in package.json over main #162

Closed
ben-polinsky opened this issue Apr 25, 2023 · 1 comment · Fixed by #195
Closed

Use exports field in package.json over main #162

ben-polinsky opened this issue Apr 25, 2023 · 1 comment · Fixed by #195
Assignees
Labels
good first issue Good for newcomers

Comments

@ben-polinsky
Copy link
Collaborator

Primarily for electron, this will allow us to better separate main and renderer entry points. We'll need to ensure types cooperate.

https://nodejs.org/docs/latest-v18.x/api/packages.html#package-entry-points
https://www.typescriptlang.org/docs/handbook/esm-node.html#packagejson-exports-imports-and-self-referencing

@ben-polinsky ben-polinsky added the good first issue Good for newcomers label Apr 25, 2023
@ben-polinsky
Copy link
Collaborator Author

Requires a bit of investigation as to whether this is ready for showtime. Notice the format of the field differs in the two above links...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants