File tree Expand file tree Collapse file tree 4 files changed +283
-19
lines changed Expand file tree Collapse file tree 4 files changed +283
-19
lines changed Original file line number Diff line number Diff line change 53
53
"devDependencies" : {
54
54
"@commitlint/cli" : " ^19.5.0" ,
55
55
"@commitlint/config-conventional" : " ^19.5.0" ,
56
- "@openapi-typescript-infra/coconfig" : " ^4.5 .0" ,
57
- "@openapi-typescript-infra/service" : " ^5.1.2 " ,
56
+ "@openapi-typescript-infra/coconfig" : " ^4.6 .0" ,
57
+ "@openapi-typescript-infra/service" : " ^5.2.0 " ,
58
58
"@semantic-release/changelog" : " ^6.0.3" ,
59
59
"@semantic-release/commit-analyzer" : " ^13.0.0" ,
60
60
"@semantic-release/exec" : " ^6.0.3" ,
68
68
"eslint-config-prettier" : " ^9.1.0" ,
69
69
"eslint-import-resolver-typescript" : " ^3.6.3" ,
70
70
"eslint-plugin-import" : " ^2.31.0" ,
71
- "ts-node" : " ^10.9.2" ,
72
71
"vitest" : " 2.1.3"
73
72
},
74
73
"dependencies" : {
78
77
"pino-pretty" : " ^11.3.0" ,
79
78
"read-package-up" : " ^11.0.0" ,
80
79
"supertest" : " ^7.0.0" ,
80
+ "tsx" : " ^4.19.1" ,
81
81
"typescript" : " ^5.6.3"
82
82
},
83
83
"packageManager" :
" [email protected] "
Original file line number Diff line number Diff line change 1
1
import http from 'http' ;
2
2
import path from 'path' ;
3
- // We are going to test Typescript files, so use the ts-node
4
- // register hook to allow require to resolve these modules
5
- import { register } from 'node:module'
6
- import { pathToFileURL } from 'url'
7
3
import assert from 'assert' ;
8
4
9
5
import request from 'supertest' ;
@@ -24,7 +20,7 @@ let app: ServiceExpress | undefined;
24
20
let appService : ServiceFactory < ServiceLocals , RequestLocals > | undefined ;
25
21
let listener : http . Server | undefined ;
26
22
27
- register ( 'ts-node /esm', pathToFileURL ( './' ) ) ;
23
+ await import ( 'tsx /esm') ;
28
24
29
25
async function getRootDirectory ( cwd : string , root ?: string ) {
30
26
if ( root ) {
Original file line number Diff line number Diff line change
1
+ declare module 'tsx/esm' ;
You can’t perform that action at this time.
0 commit comments