-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add node version testing matrix and specify compatible engines
This adds a testing matrix that covers node versions 18-21, and specifies the minimum node engine version in `package.json` as v18.3.0. One blocker to supporting earlier versions is that `buffer.File` was added in v18.3.0. I took a stab at removing this, but ran into a lot of issues trying to get things to work without it. v16 was EOLed last year though, so I don't think this is that major of an issue. It will be easier to test against earlier versions now with the testing matrix if we do decide we want to support them. One notable thing is that the `--loader` vs `--import` argument depends on versions in fairly complex ways. I think that it's roughly `--import` for `>=18.19.0 < 19.0.0 || >=v20.6.0` and `--loader` for everything else, and I have a commit in here with something like that working in the ava config, but ultimately went with running ava with tsx like `tsx ./node_modules/.bin/ava` because I'm more confident that this will work with any node version (despite the fact that it's a bit hackier). Closes #64 Merges #67
- Loading branch information
Showing
6 changed files
with
190 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
nodejs v18.18.2 | ||
nodejs v18.19.0 | ||
yarn 1.22.19 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.