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

fix: use proper ESM #109

Merged
merged 7 commits into from
Jul 5, 2024
Merged

fix: use proper ESM #109

merged 7 commits into from
Jul 5, 2024

Conversation

sparten11740
Copy link
Contributor

@sparten11740 sparten11740 commented Jul 5, 2024

Makes keychain and key-identifier of type module. Some of the dependencies are still faulty

Testplan

- [ ] node features/keychain/index.js does not throw
- [ ] node libraries/key-identifier/src/index.js does not throw

@sparten11740
Copy link
Contributor Author

tACK

  • node features/keychain/index.js does not throw
  • node libraries/key-identifier/src/index.js does not throw

Copy link
Collaborator

@mvayngrib mvayngrib left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@@ -1,3 +1,5 @@
const fs = require('node:fs')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't use import here? is that a workspace limitation?

Copy link
Contributor Author

@sparten11740 sparten11740 Jul 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have to make the entire workspace a module in that case or change the extension of the file to .mjs. But I am not sure if eslint 8 supports esm configs (eslint 9 does)

@sparten11740 sparten11740 merged commit 28507b6 into master Jul 5, 2024
8 checks passed
@sparten11740 sparten11740 deleted the sparten11740/fix/proper-esm branch July 5, 2024 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants