Skip to content

Commit

Permalink
fix(ava): use NODE_OPTIONS for Node.js 20
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy-mitchell committed Jul 17, 2023
1 parent e47929f commit f3f7329
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"prepublishOnly": "npm run build",
"build": "tsc && chmodx --package",
"postbuild": "replace-in-files dist/cli.js --string='#!/usr/bin/env tsx' --replacement='#!/usr/bin/env node'",
"test": "xo && tsc --noEmit && c8 ava"
"test": "xo && tsc --noEmit && c8 yarn ava:run",
"ava:run": "NODE_OPTIONS='--loader=tsx --no-warnings=ExperimentalWarning' ava"
},
"dependencies": {
"execa": "^7.1.1",
Expand All @@ -58,10 +59,6 @@
"extensions": {
"ts": "module"
},
"nodeArguments": [
"--loader=tsx",
"--no-warnings=ExperimentalWarning"
],
"timeout": "30s"
}
}

0 comments on commit f3f7329

Please sign in to comment.