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

refactor!: convert to TypeScript, target Node.js 16 #7

Merged
merged 14 commits into from
Jul 18, 2023

Conversation

tommy-mitchell
Copy link
Owner

@tommy-mitchell tommy-mitchell commented Jul 17, 2023

Per #5:

Does not update direct dependencies.

package.json Outdated
"--loader=tsx",
"--no-warnings=ExperimentalWarning"
],
"timeout": "30s"
Copy link
Owner Author

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.

@tommy-mitchell tommy-mitchell mentioned this pull request Jul 17, 2023
11 tasks
@tommy-mitchell tommy-mitchell force-pushed the refactor-typescript branch 6 times, most recently from a5d2404 to 9c0ead7 Compare July 18, 2023 04:46
Comment on lines +34 to +35
"test": "xo && tsc --noEmit && c8 yarn run:ava",
"run:ava": "NODE_OPTIONS='--loader=tsx --no-warnings=ExperimentalWarning' ava"
Copy link
Owner Author

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)

@tommy-mitchell tommy-mitchell merged commit 71b9b8a into main Jul 18, 2023
@tommy-mitchell tommy-mitchell deleted the refactor-typescript branch July 18, 2023 05:11
@tommy-mitchell tommy-mitchell added this to the v1.0.0 milestone Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant