Skip to content

Commit 0cf2880

Browse files
committed
Revert to ts-node to support Node.js 18
1 parent 877889f commit 0cf2880

File tree

4 files changed

+8
-112
lines changed

4 files changed

+8
-112
lines changed

ava.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
export default {
22
failFast: true,
3-
nodeArguments: ["--no-warnings", "--import=tsimp"],
43
extensions: {
54
ts: "module"
65
},

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"coverage": "c8 pnpm test",
4444
"ci": "c8 pnpm test && c8 report --reporter=json",
4545
"build": "pnpm exec del-cli lib && pnpm exec tsup",
46-
"test": "ava",
46+
"test": "cross-env NODE_OPTIONS=\"--no-warnings --experimental-fetch --loader=ts-node/esm\" ava",
4747
"report:html": "c8 -r=html pnpm test",
4848
"release": "pnpm build && pnpm changeset publish",
4949
"prepare": "npx is-in-ci@latest || husky install"
@@ -65,9 +65,8 @@
6565
"node-fetch": "3.3.2",
6666
"sinon": "18.0.0",
6767
"ts-expect": "1.3.0",
68-
"tsimp": "2.0.11",
68+
"ts-node": "10.9.2",
6969
"tsup": "8.1.0",
70-
"ttypescript": "1.5.15",
7170
"typescript": "5.5.2",
7271
"undici": "6.19.2",
7372
"web-streams-polyfill": "4.0.0"

pnpm-lock.yaml

Lines changed: 3 additions & 108 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,8 @@
2020
"moduleResolution": "node16",
2121
"forceConsistentCasingInFileNames": true,
2222
"allowSyntheticDefaultImports": true
23+
},
24+
"ts-node": {
25+
"transpileOnly": true
2326
}
2427
}

0 commit comments

Comments
 (0)