Skip to content

Commit

Permalink
Revert to ts-node to support Node.js 18
Browse files Browse the repository at this point in the history
  • Loading branch information
octet-stream committed Jun 30, 2024
1 parent 877889f commit 0cf2880
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 112 deletions.
1 change: 0 additions & 1 deletion ava.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export default {
failFast: true,
nodeArguments: ["--no-warnings", "--import=tsimp"],
extensions: {
ts: "module"
},
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"coverage": "c8 pnpm test",
"ci": "c8 pnpm test && c8 report --reporter=json",
"build": "pnpm exec del-cli lib && pnpm exec tsup",
"test": "ava",
"test": "cross-env NODE_OPTIONS=\"--no-warnings --experimental-fetch --loader=ts-node/esm\" ava",
"report:html": "c8 -r=html pnpm test",
"release": "pnpm build && pnpm changeset publish",
"prepare": "npx is-in-ci@latest || husky install"
Expand All @@ -65,9 +65,8 @@
"node-fetch": "3.3.2",
"sinon": "18.0.0",
"ts-expect": "1.3.0",
"tsimp": "2.0.11",
"ts-node": "10.9.2",
"tsup": "8.1.0",
"ttypescript": "1.5.15",
"typescript": "5.5.2",
"undici": "6.19.2",
"web-streams-polyfill": "4.0.0"
Expand Down
111 changes: 3 additions & 108 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@
"moduleResolution": "node16",
"forceConsistentCasingInFileNames": true,
"allowSyntheticDefaultImports": true
},
"ts-node": {
"transpileOnly": true
}
}

0 comments on commit 0cf2880

Please sign in to comment.