Refactored to ESM ("EcmaScript Modules")#360
Conversation
| /test.js | ||
| /.nyc_output/ | ||
| /coverage/ | ||
| /dist/ |
There was a problem hiding this comment.
If you put /dist in .gitignore it's automatically npm ignored and won't be published unless you add "files": ["dist"] to package.json
There was a problem hiding this comment.
Hmm, is it? Because I didn't seem to change anything and the 'dist' folder is not ignored:
There was a problem hiding this comment.
Hmm you may be correct - I remember everything .gitignore being .npmignored by default but I may be wrong.
|
Thanks again @catamphetamine, this is shaping up to be a big improvement. I loosened restrictions on github actions so hopefully tests should run properly when you update this PR. Let's get the tests passing and aim to get this in! |
So it looks like what's not passing are Node.js 10.x tests because, apparently, Node.js 10.x doesn't support
The tests are currently run using I asked Google and it said that I tested
Apparently, because:
So I dunno. What your suggestions would be about fixing Node.js 10.x test runner? |
|
Hmm, I did manage to pass the So I dunno. |
|
So I used New error: So I decreased the The tests seem to pass now, including Node.js 10 ones. |
|
I think we should bump a major and focus on node versions that are not EOL - we can keep current pointer to the last release that works on all legacy node versions |
|
I like this a lot and if you'd like any help please let me know and I'd be very glad to |
This is basically the original PR #356 with some of the non-essential changes removed.
Changes:
require()) to ESM (import).__dirnamevariable in tests.