chore: remove ts-node and change to tsx

This commit is contained in:
moonrailgun 2024-08-05 01:07:41 +08:00
parent 7e38e327bf
commit b04ddd40ad
3 changed files with 39 additions and 118 deletions

View File

@ -546,9 +546,6 @@ importers:
trpc-openapi:
specifier: ^1.2.0
version: 1.2.0(@trpc/server@10.45.2)(zod@3.22.2)
ts-node:
specifier: ^10.9.1
version: 10.9.1(@types/node@18.17.12)(typescript@5.5.4)
uuid:
specifier: ^9.0.1
version: 9.0.1
@ -634,9 +631,6 @@ importers:
execa:
specifier: ^5.1.1
version: 5.1.1
nodemon:
specifier: ^3.0.3
version: 3.0.3
p-map:
specifier: 4.0.0
version: 4.0.0
@ -4830,9 +4824,6 @@ packages:
resolution: {integrity: sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==}
hasBin: true
abbrev@1.1.1:
resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==}
abort-controller@3.0.0:
resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==}
engines: {node: '>=6.5'}
@ -7622,9 +7613,6 @@ packages:
ieee754@1.2.1:
resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==}
ignore-by-default@1.0.1:
resolution: {integrity: sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==}
ignore-walk@5.0.1:
resolution: {integrity: sha512-yemi4pMf51WKT7khInJqAvsIGzoqYXblnsz0ql8tM+yi1EKYTY1evX4NAbJrLL/Aanr2HyZeluqU+Oi7MGHokw==}
engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
@ -9232,15 +9220,6 @@ packages:
resolution: {integrity: sha512-cfrYUk16e67Ks051i4CntM9kshRYei1/o/Gi8K1d+R34OIs21xdFnW7Pt7EucmVKA0LKtqUGNcjMZ7ehjl49mQ==}
engines: {node: '>=6.0.0'}
nodemon@3.0.3:
resolution: {integrity: sha512-7jH/NXbFPxVaMwmBCC2B9F/V6X1VkEdNgx3iu9jji8WxWcvhMWkmhNWhI5077zknOnZnBzba9hZP6bCPJLSReQ==}
engines: {node: '>=10'}
hasBin: true
nopt@1.0.10:
resolution: {integrity: sha512-NWmpvLSqUrgrAC9HCuxEvb+PSloHpqVu+FqcO4eeF2h5qYRhA7ev6KvelyQAKtegUbC6RypJnlEOhd8vloNKYg==}
hasBin: true
normalize-package-data@2.5.0:
resolution: {integrity: sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==}
@ -10253,9 +10232,6 @@ packages:
prr@1.0.1:
resolution: {integrity: sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw==}
pstree.remy@1.1.8:
resolution: {integrity: sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==}
pump@2.0.1:
resolution: {integrity: sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==}
@ -11500,10 +11476,6 @@ packages:
simple-swizzle@0.2.2:
resolution: {integrity: sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==}
simple-update-notifier@2.0.0:
resolution: {integrity: sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==}
engines: {node: '>=10'}
sirv@2.0.4:
resolution: {integrity: sha512-94Bdh3cC2PKrbgSOUqTiGPWVZeSiXfKOVZNJniWoqrWrRkB1CJzBU3NEbiTsPcYy1lDsANA/THzS+9WBiy5nfQ==}
engines: {node: '>= 10'}
@ -12158,10 +12130,6 @@ packages:
resolution: {integrity: sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==}
engines: {node: '>=6'}
touch@3.1.0:
resolution: {integrity: sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==}
hasBin: true
tr46@0.0.3:
resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==}
@ -12370,9 +12338,6 @@ packages:
uncrypto@0.1.3:
resolution: {integrity: sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==}
undefsafe@2.0.5:
resolution: {integrity: sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==}
undici-types@5.26.5:
resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==}
@ -13996,7 +13961,7 @@ snapshots:
'@babel/traverse': 7.23.7
'@babel/types': 7.23.6
convert-source-map: 2.0.0
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
gensync: 1.0.0-beta.2
json5: 2.2.3
semver: 6.3.1
@ -14016,7 +13981,7 @@ snapshots:
'@babel/traverse': 7.24.0
'@babel/types': 7.24.0
convert-source-map: 2.0.0
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
gensync: 1.0.0-beta.2
json5: 2.2.3
semver: 6.3.1
@ -14071,7 +14036,7 @@ snapshots:
'@babel/core': 7.24.0
'@babel/helper-compilation-targets': 7.23.6
'@babel/helper-plugin-utils': 7.24.0
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
lodash.debounce: 4.0.8
resolve: 1.22.8
transitivePeerDependencies:
@ -14817,7 +14782,7 @@ snapshots:
'@babel/helper-split-export-declaration': 7.22.6
'@babel/parser': 7.24.0
'@babel/types': 7.24.0
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
globals: 11.12.0
transitivePeerDependencies:
- supports-color
@ -14832,7 +14797,7 @@ snapshots:
'@babel/helper-split-export-declaration': 7.22.6
'@babel/parser': 7.24.0
'@babel/types': 7.24.0
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
globals: 11.12.0
transitivePeerDependencies:
- supports-color
@ -16336,7 +16301,7 @@ snapshots:
'@prisma/debug@4.16.2':
dependencies:
'@types/debug': 4.1.8
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
strip-ansi: 6.0.1
transitivePeerDependencies:
- supports-color
@ -16346,7 +16311,7 @@ snapshots:
'@prisma/debug@5.5.2':
dependencies:
'@types/debug': 4.1.9
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
strip-ansi: 6.0.1
transitivePeerDependencies:
- supports-color
@ -16503,7 +16468,7 @@ snapshots:
'@puppeteer/browsers@1.9.1':
dependencies:
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
extract-zip: 2.0.1
progress: 2.0.3
proxy-agent: 6.3.1
@ -18876,8 +18841,6 @@ snapshots:
jsonparse: 1.3.1
through: 2.3.8
abbrev@1.1.1: {}
abort-controller@3.0.0:
dependencies:
event-target-shim: 5.0.1
@ -18937,7 +18900,7 @@ snapshots:
agent-base@7.1.0:
dependencies:
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
transitivePeerDependencies:
- supports-color
@ -19995,7 +19958,7 @@ snapshots:
dependencies:
'@types/debug': 0.0.31
array-flatten: 2.1.2
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
transitivePeerDependencies:
- supports-color
@ -20556,11 +20519,9 @@ snapshots:
dependencies:
ms: 2.0.0
debug@4.3.4(supports-color@5.5.0):
debug@4.3.4:
dependencies:
ms: 2.1.2
optionalDependencies:
supports-color: 5.5.0
debug@4.3.6:
dependencies:
@ -20695,7 +20656,7 @@ snapshots:
detect-port@1.5.1:
dependencies:
address: 1.2.2
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
transitivePeerDependencies:
- supports-color
@ -20987,7 +20948,7 @@ snapshots:
engine.io-client@6.5.2:
dependencies:
'@socket.io/component-emitter': 3.1.0
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
engine.io-parser: 5.2.1
ws: 8.11.0
xmlhttprequest-ssl: 2.0.0
@ -21007,7 +20968,7 @@ snapshots:
base64id: 2.0.0
cookie: 0.4.2
cors: 2.8.5
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
engine.io-parser: 5.2.1
ws: 8.11.0
transitivePeerDependencies:
@ -21421,7 +21382,7 @@ snapshots:
extract-zip@2.0.1:
dependencies:
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
get-stream: 5.2.0
yauzl: 2.10.0
optionalDependencies:
@ -21776,7 +21737,7 @@ snapshots:
dependencies:
basic-ftp: 5.0.3
data-uri-to-buffer: 6.0.1
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
fs-extra: 8.1.0
transitivePeerDependencies:
- supports-color
@ -22358,7 +22319,7 @@ snapshots:
http-proxy-agent@7.0.0:
dependencies:
agent-base: 7.1.0
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
transitivePeerDependencies:
- supports-color
@ -22394,21 +22355,21 @@ snapshots:
https-proxy-agent@6.2.1:
dependencies:
agent-base: 7.1.0
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
transitivePeerDependencies:
- supports-color
https-proxy-agent@7.0.0:
dependencies:
agent-base: 7.1.0
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
transitivePeerDependencies:
- supports-color
https-proxy-agent@7.0.2:
dependencies:
agent-base: 7.1.0
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
transitivePeerDependencies:
- supports-color
@ -22474,8 +22435,6 @@ snapshots:
ieee754@1.2.1: {}
ignore-by-default@1.0.1: {}
ignore-walk@5.0.1:
dependencies:
minimatch: 5.1.6
@ -24069,7 +24028,7 @@ snapshots:
micromark@3.2.0:
dependencies:
'@types/debug': 4.1.12
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
decode-named-character-reference: 1.0.2
micromark-core-commonmark: 1.1.0
micromark-factory-space: 1.1.0
@ -24091,7 +24050,7 @@ snapshots:
micromark@4.0.0:
dependencies:
'@types/debug': 4.1.12
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
decode-named-character-reference: 1.0.2
devlop: 1.1.0
micromark-core-commonmark: 2.0.0
@ -24486,23 +24445,6 @@ snapshots:
nodemailer@6.9.8: {}
nodemon@3.0.3:
dependencies:
chokidar: 3.5.3
debug: 4.3.4(supports-color@5.5.0)
ignore-by-default: 1.0.1
minimatch: 3.1.2
pstree.remy: 1.1.8
semver: 7.5.4
simple-update-notifier: 2.0.0
supports-color: 5.5.0
touch: 3.1.0
undefsafe: 2.0.5
nopt@1.0.10:
dependencies:
abbrev: 1.1.1
normalize-package-data@2.5.0:
dependencies:
hosted-git-info: 2.8.9
@ -24802,7 +24744,7 @@ snapshots:
dependencies:
'@tootallnate/quickjs-emscripten': 0.23.0
agent-base: 7.1.0
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
get-uri: 6.0.2
http-proxy-agent: 7.0.0
https-proxy-agent: 7.0.2
@ -25712,7 +25654,7 @@ snapshots:
proxy-agent@6.3.1:
dependencies:
agent-base: 7.1.0
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
http-proxy-agent: 7.0.0
https-proxy-agent: 7.0.2
lru-cache: 7.18.3
@ -25727,8 +25669,6 @@ snapshots:
prr@1.0.1:
optional: true
pstree.remy@1.1.8: {}
pump@2.0.1:
dependencies:
end-of-stream: 1.4.4
@ -25758,7 +25698,7 @@ snapshots:
'@puppeteer/browsers': 1.9.1
chromium-bidi: 0.5.2(devtools-protocol@0.0.1203626)
cross-fetch: 4.0.0
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
devtools-protocol: 0.0.1203626
ws: 8.16.0
transitivePeerDependencies:
@ -27635,10 +27575,6 @@ snapshots:
dependencies:
is-arrayish: 0.3.2
simple-update-notifier@2.0.0:
dependencies:
semver: 7.5.4
sirv@2.0.4:
dependencies:
'@polka/url': 1.0.0-next.24
@ -27695,7 +27631,7 @@ snapshots:
socket.io-client@4.7.2:
dependencies:
'@socket.io/component-emitter': 3.1.0
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
engine.io-client: 6.5.2
socket.io-parser: 4.2.4
transitivePeerDependencies:
@ -27706,7 +27642,7 @@ snapshots:
socket.io-parser@4.2.4:
dependencies:
'@socket.io/component-emitter': 3.1.0
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
transitivePeerDependencies:
- supports-color
@ -27715,7 +27651,7 @@ snapshots:
accepts: 1.3.8
base64id: 2.0.0
cors: 2.8.5
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
engine.io: 6.5.2
socket.io-adapter: 2.5.2
socket.io-parser: 4.2.4
@ -27733,7 +27669,7 @@ snapshots:
socks-proxy-agent@8.0.2:
dependencies:
agent-base: 7.1.0
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
socks: 2.7.1
transitivePeerDependencies:
- supports-color
@ -27814,7 +27750,7 @@ snapshots:
spdy-transport@3.0.0:
dependencies:
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
detect-node: 2.1.0
hpack.js: 2.1.6
obuf: 1.1.2
@ -27825,7 +27761,7 @@ snapshots:
spdy@4.0.2:
dependencies:
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
handle-thing: 2.0.1
http-deceiver: 1.2.7
select-hose: 2.0.0
@ -28050,7 +27986,7 @@ snapshots:
dependencies:
component-emitter: 1.3.1
cookiejar: 2.1.4
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
fast-safe-stringify: 2.1.1
form-data: 4.0.0
formidable: 2.1.2
@ -28066,7 +28002,7 @@ snapshots:
dependencies:
component-emitter: 1.3.1
cookiejar: 2.1.4
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
fast-safe-stringify: 2.1.1
form-data: 4.0.0
formidable: 2.1.2
@ -28439,10 +28375,6 @@ snapshots:
totalist@3.0.1: {}
touch@3.1.0:
dependencies:
nopt: 1.0.10
tr46@0.0.3: {}
tr46@1.0.1:
@ -28676,8 +28608,6 @@ snapshots:
uncrypto@0.1.3: {}
undefsafe@2.0.5: {}
undici-types@5.26.5: {}
unenv@1.7.4:
@ -29076,7 +29006,7 @@ snapshots:
vite-node@1.2.1(@types/node@18.17.12)(less@4.2.0)(terser@5.28.1):
dependencies:
cac: 6.7.14
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
pathe: 1.1.2
picocolors: 1.0.0
vite: 5.0.12(@types/node@18.17.12)(less@4.2.0)(terser@5.28.1)
@ -29093,7 +29023,7 @@ snapshots:
vite-node@1.2.1(@types/node@20.12.7)(less@4.2.0)(terser@5.28.1):
dependencies:
cac: 6.7.14
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
pathe: 1.1.2
picocolors: 1.0.0
vite: 5.0.12(@types/node@20.12.7)(less@4.2.0)(terser@5.28.1)
@ -29139,7 +29069,7 @@ snapshots:
acorn-walk: 8.3.2
cac: 6.7.14
chai: 4.4.1
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
execa: 8.0.1
local-pkg: 0.5.0
magic-string: 0.30.5
@ -29174,7 +29104,7 @@ snapshots:
acorn-walk: 8.3.2
cac: 6.7.14
chai: 4.4.1
debug: 4.3.4(supports-color@5.5.0)
debug: 4.3.4
execa: 8.0.1
local-pkg: 0.5.0
magic-string: 0.30.5

View File

@ -1,7 +0,0 @@
{
"verbose": true,
"watch": ["./"],
"ext": "ts",
"delay": 1000,
"exec": "ts-node --transpileOnly ./main.ts"
}

View File

@ -14,9 +14,9 @@
"db:generate": "prisma generate",
"db:migrate:dev": "prisma migrate dev",
"db:migrate:apply": "prisma migrate deploy",
"db:migrate:script": "ts-node ./prisma/scripts/populate-ip-location.ts",
"db:migrate:script": "tsx ./prisma/scripts/populate-ip-location.ts",
"db:studio": "prisma studio",
"db:seed:website": "ts-node ./tests/seeds/website.ts",
"db:seed:website": "tsx ./tests/seeds/website.ts",
"test": "vitest",
"test:ci": "vitest --run"
},
@ -65,7 +65,6 @@
"swagger-ui-express": "^5.0.0",
"tcp-ping": "^0.1.1",
"trpc-openapi": "^1.2.0",
"ts-node": "^10.9.1",
"uuid": "^9.0.1",
"vite-express": "^0.13.0",
"winston": "^3.11.0",
@ -96,7 +95,6 @@
"@types/tcp-ping": "^0.1.5",
"@types/uuid": "^9.0.7",
"execa": "^5.1.1",
"nodemon": "^3.0.3",
"p-map": "4.0.0",
"prisma": "5.14.0",
"prisma-json-types-generator": "3.0.3",