-
Notifications
You must be signed in to change notification settings - Fork 23
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
Modern node support #70
Conversation
Hello, |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #70 +/- ##
==========================================
- Coverage 95.44% 87.01% -8.44%
==========================================
Files 5 1 -4
Lines 483 77 -406
Branches 49 16 -33
==========================================
- Hits 461 67 -394
+ Misses 22 10 -12 ☔ View full report in Codecov by Sentry. |
Hello ! I'm really sorry about the delay to answer 🙏 I'm trying to test your code before merging it, but I can't make it work on my machine. This is the command I'm running (I tried on node 16 and 22): rm -fr node_modules && npm i && npm run build && node dist/bin/index.cjs daily And this is the error I have on both node 16 and node 22: Do you have any idea what's going on? Did I miss something? |
a44e191
to
2470e84
Compare
2470e84
to
25c3e97
Compare
Hi @bokub I rebased the branch and removed the commit about JSON imports, 🤞 for the CI |
unsure if I can do anything about codecov failing ? |
Don't worry about codecov, it's just saying that the code coverage dropped, but that's normal because the coverage hasn't been computed since the tests started to fail in CI |
I've merged your PR! Thanks a lot for your work, I couldn't find the free time to fix this failing test 🙏 |
This fixes #69 by using https://nodejs.org/docs/latest/api/module.html#modulecreaterequirefilename to be able to require package.json without having to worry about node version.
Also this is fixing the tests for node > 16 (they work locally at least) and while at it, I also remove the useless import (already done in the vite test config)