-
Notifications
You must be signed in to change notification settings - Fork 0
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
refactor!: convert to TypeScript, target Node.js 16 #7
Conversation
package.json
Outdated
"--loader=tsx", | ||
"--no-warnings=ExperimentalWarning" | ||
], | ||
"timeout": "30s" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests timeout without this, for some reason.
a5d2404
to
9c0ead7
Compare
"test": "xo && tsc --noEmit && c8 yarn run:ava", | ||
"run:ava": "NODE_OPTIONS='--loader=tsx --no-warnings=ExperimentalWarning' ava" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Node.js 20 changed how ESM loaders work, breaking AVA support for "nodeArguments": ["--loader=tsx"]
configuration. This is a workaround, per avajs/ava#2593 (comment)
Per #5:
Does not update direct dependencies.