Skip to content

Commit

Permalink
replace ts-node with tsx to support ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
yshrsmz committed Aug 11, 2024
1 parent 15ec32d commit c4eed89
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 137 deletions.
2 changes: 1 addition & 1 deletion packages/site-api-github/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@graphql-codegen/typescript-operations": "4.2.3",
"@types/node": "18.19.42",
"site-types": "1.0.0",
"ts-node": "10.9.2",
"tsx": "4.17.0",
"typescript": "5.5.4"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/site-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"license": "MIT",
"scripts": {
"generate": "ts-node ./index.ts"
"generate": "tsx ./index.ts"
},
"dependencies": {
"fs-extra": "11.2.0",
Expand All @@ -17,7 +17,7 @@
"@types/node": "18.19.42",
"@types/rimraf": "4.0.5",
"site-types": "1.0.0",
"ts-node": "10.9.2",
"tsx": "4.17.0",
"typescript": "5.5.4"
}
}
4 changes: 2 additions & 2 deletions packages/site-rss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"license": "MIT",
"scripts": {
"generate": "ts-node ./index.ts"
"generate": "tsx ./index.ts"
},
"dependencies": {
"feed": "4.2.2",
Expand All @@ -15,7 +15,7 @@
"@types/markdown-it": "14.1.2",
"@types/node": "18.19.42",
"site-types": "1.0.0",
"ts-node": "10.9.2",
"tsx": "4.17.0",
"typescript": "5.5.4"
}
}
4 changes: 2 additions & 2 deletions packages/sns-updater/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"license": "MIT",
"repository": "[email protected]:androiddagashi/androiddagashi.git",
"scripts": {
"update": "ts-node ./index.ts"
"update": "tsx ./index.ts"
},
"devDependencies": {
"@types/node-fetch": "^2.6.3",
"@types/oauth": "0.9.5",
"site-types": "^1.0.0",
"ts-node": "10.9.2",
"tsx": "4.17.0",
"typescript": "5.5.4"
},
"dependencies": {
Expand Down
156 changes: 26 additions & 130 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1640,15 +1640,6 @@ __metadata:
languageName: node
linkType: hard

"@cspotcode/source-map-support@npm:^0.8.0":
version: 0.8.1
resolution: "@cspotcode/source-map-support@npm:0.8.1"
dependencies:
"@jridgewell/trace-mapping": "npm:0.3.9"
checksum: 10c0/05c5368c13b662ee4c122c7bfbe5dc0b613416672a829f3e78bc49a357a197e0218d6e74e7c66cfcd04e15a179acab080bd3c69658c9fbefd0e1ccd950a07fc6
languageName: node
linkType: hard

"@csstools/cascade-layer-name-parser@npm:^1.0.13":
version: 1.0.13
resolution: "@csstools/cascade-layer-name-parser@npm:1.0.13"
Expand Down Expand Up @@ -3828,7 +3819,7 @@ __metadata:
languageName: node
linkType: hard

"@jridgewell/resolve-uri@npm:^3.0.3, @jridgewell/resolve-uri@npm:^3.1.0":
"@jridgewell/resolve-uri@npm:^3.1.0":
version: 3.1.2
resolution: "@jridgewell/resolve-uri@npm:3.1.2"
checksum: 10c0/d502e6fb516b35032331406d4e962c21fe77cdf1cbdb49c6142bcbd9e30507094b18972778a6e27cbad756209cfe34b1a27729e6fa08a2eb92b33943f680cf1e
Expand Down Expand Up @@ -3859,16 +3850,6 @@ __metadata:
languageName: node
linkType: hard

"@jridgewell/trace-mapping@npm:0.3.9":
version: 0.3.9
resolution: "@jridgewell/trace-mapping@npm:0.3.9"
dependencies:
"@jridgewell/resolve-uri": "npm:^3.0.3"
"@jridgewell/sourcemap-codec": "npm:^1.4.10"
checksum: 10c0/fa425b606d7c7ee5bfa6a31a7b050dd5814b4082f318e0e4190f991902181b4330f43f4805db1dd4f2433fd0ed9cc7a7b9c2683f1deeab1df1b0a98b1e24055b
languageName: node
linkType: hard

"@jridgewell/trace-mapping@npm:^0.3.24, @jridgewell/trace-mapping@npm:^0.3.25":
version: 0.3.25
resolution: "@jridgewell/trace-mapping@npm:0.3.25"
Expand Down Expand Up @@ -5317,34 +5298,6 @@ __metadata:
languageName: node
linkType: hard

"@tsconfig/node10@npm:^1.0.7":
version: 1.0.11
resolution: "@tsconfig/node10@npm:1.0.11"
checksum: 10c0/28a0710e5d039e0de484bdf85fee883bfd3f6a8980601f4d44066b0a6bcd821d31c4e231d1117731c4e24268bd4cf2a788a6787c12fc7f8d11014c07d582783c
languageName: node
linkType: hard

"@tsconfig/node12@npm:^1.0.7":
version: 1.0.11
resolution: "@tsconfig/node12@npm:1.0.11"
checksum: 10c0/dddca2b553e2bee1308a056705103fc8304e42bb2d2cbd797b84403a223b25c78f2c683ec3e24a095e82cd435387c877239bffcb15a590ba817cd3f6b9a99fd9
languageName: node
linkType: hard

"@tsconfig/node14@npm:^1.0.0":
version: 1.0.3
resolution: "@tsconfig/node14@npm:1.0.3"
checksum: 10c0/67c1316d065fdaa32525bc9449ff82c197c4c19092b9663b23213c8cbbf8d88b6ed6a17898e0cbc2711950fbfaf40388938c1c748a2ee89f7234fc9e7fe2bf44
languageName: node
linkType: hard

"@tsconfig/node16@npm:^1.0.2":
version: 1.0.4
resolution: "@tsconfig/node16@npm:1.0.4"
checksum: 10c0/05f8f2734e266fb1839eb1d57290df1664fe2aa3b0fdd685a9035806daa635f7519bf6d5d9b33f6e69dd545b8c46bd6e2b5c79acb2b1f146e885f7f11a42a5bb
languageName: node
linkType: hard

"@types/babel__core@npm:7.20.5":
version: 7.20.5
resolution: "@types/babel__core@npm:7.20.5"
Expand Down Expand Up @@ -6601,7 +6554,7 @@ __metadata:
languageName: node
linkType: hard

"acorn-walk@npm:^8.0.0, acorn-walk@npm:^8.1.1":
"acorn-walk@npm:^8.0.0":
version: 8.3.3
resolution: "acorn-walk@npm:8.3.3"
dependencies:
Expand All @@ -6619,7 +6572,7 @@ __metadata:
languageName: node
linkType: hard

"acorn@npm:^8.0.4, acorn@npm:^8.11.0, acorn@npm:^8.11.3, acorn@npm:^8.12.1, acorn@npm:^8.4.1, acorn@npm:^8.5.0, acorn@npm:^8.6.0, acorn@npm:^8.8.2, acorn@npm:^8.9.0":
"acorn@npm:^8.0.4, acorn@npm:^8.11.0, acorn@npm:^8.11.3, acorn@npm:^8.12.1, acorn@npm:^8.5.0, acorn@npm:^8.6.0, acorn@npm:^8.8.2, acorn@npm:^8.9.0":
version: 8.12.1
resolution: "acorn@npm:8.12.1"
bin:
Expand Down Expand Up @@ -6901,13 +6854,6 @@ __metadata:
languageName: node
linkType: hard

"arg@npm:^4.1.0":
version: 4.1.3
resolution: "arg@npm:4.1.3"
checksum: 10c0/070ff801a9d236a6caa647507bdcc7034530604844d64408149a26b9e87c2f97650055c0f049abd1efc024b334635c01f29e0b632b371ac3f26130f4cf65997a
languageName: node
linkType: hard

"arg@npm:^5.0.2":
version: 5.0.2
resolution: "arg@npm:5.0.2"
Expand Down Expand Up @@ -8742,7 +8688,7 @@ __metadata:
languageName: node
linkType: hard

"create-require@npm:^1.1.0, create-require@npm:^1.1.1":
"create-require@npm:^1.1.1":
version: 1.1.1
resolution: "create-require@npm:1.1.1"
checksum: 10c0/157cbc59b2430ae9a90034a5f3a1b398b6738bf510f713edc4d4e45e169bc514d3d99dd34d8d01ca7ae7830b5b8b537e46ae8f3c8f932371b0875c0151d7ec91
Expand Down Expand Up @@ -9484,13 +9430,6 @@ __metadata:
languageName: node
linkType: hard

"diff@npm:^4.0.1":
version: 4.0.2
resolution: "diff@npm:4.0.2"
checksum: 10c0/81b91f9d39c4eaca068eb0c1eb0e4afbdc5bb2941d197f513dd596b820b956fef43485876226d65d497bebc15666aa2aa82c679e84f65d5f2bfbf14ee46e32c1
languageName: node
linkType: hard

"diffie-hellman@npm:^5.0.0":
version: 5.0.3
resolution: "diffie-hellman@npm:5.0.3"
Expand Down Expand Up @@ -10232,7 +10171,7 @@ __metadata:
languageName: node
linkType: hard

"esbuild@npm:^0.23.0":
"esbuild@npm:^0.23.0, esbuild@npm:~0.23.0":
version: 0.23.0
resolution: "esbuild@npm:0.23.0"
dependencies:
Expand Down Expand Up @@ -11780,7 +11719,7 @@ __metadata:
languageName: node
linkType: hard

"get-tsconfig@npm:^4.5.0, get-tsconfig@npm:^4.7.0":
"get-tsconfig@npm:^4.5.0, get-tsconfig@npm:^4.7.0, get-tsconfig@npm:^4.7.5":
version: 4.7.6
resolution: "get-tsconfig@npm:4.7.6"
dependencies:
Expand Down Expand Up @@ -14356,13 +14295,6 @@ __metadata:
languageName: node
linkType: hard

"make-error@npm:^1.1.1":
version: 1.3.6
resolution: "make-error@npm:1.3.6"
checksum: 10c0/171e458d86854c6b3fc46610cfacf0b45149ba043782558c6875d9f42f222124384ad0b468c92e996d815a8a2003817a710c0a160e49c1c394626f76fa45396f
languageName: node
linkType: hard

"make-fetch-happen@npm:^13.0.0":
version: 13.0.1
resolution: "make-fetch-happen@npm:13.0.1"
Expand Down Expand Up @@ -18993,7 +18925,7 @@ __metadata:
graphql-request: "npm:6.1.0"
site-common: "npm:1.0.0"
site-types: "npm:1.0.0"
ts-node: "npm:10.9.2"
tsx: "npm:4.17.0"
typescript: "npm:5.5.4"
languageName: unknown
linkType: soft
Expand All @@ -19011,7 +18943,7 @@ __metadata:
site-common: "npm:1.0.0"
site-config: "npm:1.0.0"
site-types: "npm:1.0.0"
ts-node: "npm:10.9.2"
tsx: "npm:4.17.0"
typescript: "npm:5.5.4"
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -19047,7 +18979,7 @@ __metadata:
site-common: "npm:1.0.0"
site-config: "npm:1.0.0"
site-types: "npm:1.0.0"
ts-node: "npm:10.9.2"
tsx: "npm:4.17.0"
typescript: "npm:5.5.4"
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -19212,7 +19144,7 @@ __metadata:
site-common: "npm:^1.0.0"
site-config: "npm:^1.0.0"
site-types: "npm:^1.0.0"
ts-node: "npm:10.9.2"
tsx: "npm:4.17.0"
typescript: "npm:5.5.4"
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -20295,44 +20227,6 @@ __metadata:
languageName: node
linkType: hard

"ts-node@npm:10.9.2":
version: 10.9.2
resolution: "ts-node@npm:10.9.2"
dependencies:
"@cspotcode/source-map-support": "npm:^0.8.0"
"@tsconfig/node10": "npm:^1.0.7"
"@tsconfig/node12": "npm:^1.0.7"
"@tsconfig/node14": "npm:^1.0.0"
"@tsconfig/node16": "npm:^1.0.2"
acorn: "npm:^8.4.1"
acorn-walk: "npm:^8.1.1"
arg: "npm:^4.1.0"
create-require: "npm:^1.1.0"
diff: "npm:^4.0.1"
make-error: "npm:^1.1.1"
v8-compile-cache-lib: "npm:^3.0.1"
yn: "npm:3.1.1"
peerDependencies:
"@swc/core": ">=1.2.50"
"@swc/wasm": ">=1.2.50"
"@types/node": "*"
typescript: ">=2.7"
peerDependenciesMeta:
"@swc/core":
optional: true
"@swc/wasm":
optional: true
bin:
ts-node: dist/bin.js
ts-node-cwd: dist/bin-cwd.js
ts-node-esm: dist/bin-esm.js
ts-node-script: dist/bin-script.js
ts-node-transpile-only: dist/bin-transpile.js
ts-script: dist/bin-script-deprecated.js
checksum: 10c0/5f29938489f96982a25ba650b64218e83a3357d76f7bede80195c65ab44ad279c8357264639b7abdd5d7e75fc269a83daa0e9c62fd8637a3def67254ecc9ddc2
languageName: node
linkType: hard

"ts-pnp@npm:^1.1.6":
version: 1.2.0
resolution: "ts-pnp@npm:1.2.0"
Expand Down Expand Up @@ -20383,6 +20277,22 @@ __metadata:
languageName: node
linkType: hard

"tsx@npm:4.17.0":
version: 4.17.0
resolution: "tsx@npm:4.17.0"
dependencies:
esbuild: "npm:~0.23.0"
fsevents: "npm:~2.3.3"
get-tsconfig: "npm:^4.7.5"
dependenciesMeta:
fsevents:
optional: true
bin:
tsx: dist/cli.mjs
checksum: 10c0/ad720b81d6447c7695d24c27947fa1a2b6db9d2ef03216389edd6fa0006aa479bc0d8348a1ac9975a08edef4ce791ff5629a24d8dccbb0987f42e5407785cfa4
languageName: node
linkType: hard

"tty-browserify@npm:0.0.0":
version: 0.0.0
resolution: "tty-browserify@npm:0.0.0"
Expand Down Expand Up @@ -21152,13 +21062,6 @@ __metadata:
languageName: node
linkType: hard

"v8-compile-cache-lib@npm:^3.0.1":
version: 3.0.1
resolution: "v8-compile-cache-lib@npm:3.0.1"
checksum: 10c0/bdc36fb8095d3b41df197f5fb6f11e3a26adf4059df3213e3baa93810d8f0cc76f9a74aaefc18b73e91fe7e19154ed6f134eda6fded2e0f1c8d2272ed2d2d391
languageName: node
linkType: hard

"validate-npm-package-license@npm:^3.0.1":
version: 3.0.4
resolution: "validate-npm-package-license@npm:3.0.4"
Expand Down Expand Up @@ -21986,13 +21889,6 @@ __metadata:
languageName: node
linkType: hard

"yn@npm:3.1.1":
version: 3.1.1
resolution: "yn@npm:3.1.1"
checksum: 10c0/0732468dd7622ed8a274f640f191f3eaf1f39d5349a1b72836df484998d7d9807fbea094e2f5486d6b0cd2414aad5775972df0e68f8604db89a239f0f4bf7443
languageName: node
linkType: hard

"yocto-queue@npm:^0.1.0":
version: 0.1.0
resolution: "yocto-queue@npm:0.1.0"
Expand Down

0 comments on commit c4eed89

Please sign in to comment.