Replace ts-node with tsimp (#208)

This commit is contained in:
Bjorn Stromberg 2024-06-25 08:08:48 +08:00 committed by GitHub
parent 47f49741ea
commit 92699e1049
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 23 additions and 21 deletions

View file

@ -19,7 +19,7 @@
},
"scripts": {
"build": "del dist && tsc",
"test": "tsc --noEmit && xo && NODE_OPTIONS='--loader=ts-node/esm --no-warnings=ExperimentalWarning' ava",
"test": "tsc --noEmit && xo && ava",
"prepare": "npm run build"
},
"files": [
@ -50,24 +50,30 @@
"types"
],
"devDependencies": {
"@sindresorhus/tsconfig": "^4.0.0",
"@types/jsdom": "^21.1.1",
"@types/node": "^20.5.0",
"@sindresorhus/tsconfig": "^5.0.0",
"@types/jsdom": "^21.1.7",
"@types/node": "^20.14.8",
"@types/zen-observable": "^0.8.3",
"ava": "^5.3.1",
"ava": "^6.1.3",
"del-cli": "^5.0.0",
"expect-type": "^0.16.0",
"jsdom": "^22.1.0",
"rxjs": "^7.8.1",
"tempy": "^3.1.0",
"ts-node": "^10.9.1",
"tsimp": "^2.0.11",
"typescript": "^5.1.6",
"xo": "^0.56.0",
"zen-observable": "^0.10.0",
"expect-type": "^0.16.0"
"zen-observable": "^0.10.0"
},
"ava": {
"environmentVariables": {
"TSIMP_DIAG": "error"
},
"extensions": {
"ts": "module"
}
},
"nodeArguments": [
"--import=tsimp/import"
]
}
}