Skip to content

Commit 5229f5f

Browse files
committed
feat: remove ts-node - use tsx upstream
1 parent 6183e7f commit 5229f5f

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
"devDependencies": {
105105
"@commitlint/cli": "^19.5.0",
106106
"@commitlint/config-conventional": "^19.5.0",
107-
"@openapi-typescript-infra/coconfig": "^4.5.0",
107+
"@openapi-typescript-infra/coconfig": "^4.6.0",
108108
"@semantic-release/commit-analyzer": "^13.0.0",
109109
"@semantic-release/exec": "^6.0.3",
110110
"@semantic-release/github": "^11.0.0",
@@ -125,7 +125,6 @@
125125
"pino-pretty": "^11.3.0",
126126
"pinst": "^3.0.0",
127127
"supertest": "^7.0.0",
128-
"ts-node": "^10.9.2",
129128
"tsconfig-paths": "^4.2.0",
130129
"typescript": "^5.6.3",
131130
"vitest": "^2.1.3"
@@ -134,4 +133,4 @@
134133
"qs": "^6.11.0"
135134
},
136135
"packageManager": "[email protected]"
137-
}
136+
}

src/bootstrap.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import path from 'node:path';
22
import assert from 'node:assert';
3-
import { pathToFileURL } from 'node:url';
4-
import { register } from 'node:module';
53

64
import { config } from 'dotenv';
75
import { readPackageUp } from 'read-package-up';
@@ -83,7 +81,6 @@ export async function bootstrap<
8381
let entrypoint: string;
8482
let codepath: 'build' | 'dist' | 'src' = 'build';
8583
if (isDev() && argv?.built !== true) {
86-
register('ts-node/esm', pathToFileURL('./'));
8784
if (main) {
8885
entrypoint = main.replace(/^(\.?\/?)(build|dist)\//, '$1src/').replace(/\.js$/, '.ts');
8986
} else {

yarn.lock

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -739,10 +739,10 @@ __metadata:
739739
languageName: node
740740
linkType: hard
741741

742-
"@openapi-typescript-infra/coconfig@npm:^4.5.0":
743-
version: 4.5.0
744-
resolution: "@openapi-typescript-infra/coconfig@npm:4.5.0"
745-
checksum: 5f0eacbc9588ae7ec1984265e978e65d15c8a06c9f1cc181f249b1cbf09928f500e62501b636895c87ebdd67a92a5ba0ae091bd8a12303b2386108e8fc01c1f1
742+
"@openapi-typescript-infra/coconfig@npm:^4.6.0":
743+
version: 4.6.0
744+
resolution: "@openapi-typescript-infra/coconfig@npm:4.6.0"
745+
checksum: 34cb2e461996befe5062eab92cf6d65408f4e92ef33cc2dc3471b32e5853a1654416242efaecc4c0f64080b9b162340205836ab0984bdf2e5e6e62d054b73a93
746746
languageName: node
747747
linkType: hard
748748

@@ -753,7 +753,7 @@ __metadata:
753753
"@commitlint/cli": ^19.5.0
754754
"@commitlint/config-conventional": ^19.5.0
755755
"@godaddy/terminus": ^4.12.1
756-
"@openapi-typescript-infra/coconfig": ^4.5.0
756+
"@openapi-typescript-infra/coconfig": ^4.6.0
757757
"@opentelemetry/api": ^1.9.0
758758
"@opentelemetry/exporter-prometheus": ^0.53.0
759759
"@opentelemetry/instrumentation-dns": ^0.39.0
@@ -803,7 +803,6 @@ __metadata:
803803
read-package-up: ^11.0.0
804804
request-ip: ^3.3.0
805805
supertest: ^7.0.0
806-
ts-node: ^10.9.2
807806
tsconfig-paths: ^4.2.0
808807
typescript: ^5.6.3
809808
vitest: ^2.1.3

0 commit comments

Comments
 (0)