chore: use tsgo to verify types (#1417)

Reviewed-on: OpenWF/SpaceNinjaServer#1417
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
Sainan 2025-04-01 02:29:41 -07:00 committed by Sainan
parent 3a26d788a2
commit 2091dabfc3
2 changed files with 29 additions and 1 deletions

27
package-lock.json generated
View File

@ -24,6 +24,7 @@
"winston-daily-rotate-file": "^5.0.0"
},
"devDependencies": {
"@rxliuli/tsgo": "^2025.3.31",
"@typescript-eslint/eslint-plugin": "^8.28.0",
"@typescript-eslint/parser": "^8.28.0",
"eslint": "^8",
@ -307,6 +308,32 @@
"url": "https://opencollective.com/unts"
}
},
"node_modules/@rxliuli/tsgo": {
"version": "2025.3.31",
"resolved": "https://registry.npmjs.org/@rxliuli/tsgo/-/tsgo-2025.3.31.tgz",
"integrity": "sha512-jEistRy/+Mu79rDv/Q8xn2yIM56WF3rfQOkwrbtivumij5HBVTfY4W3EYNL3N7rop7yg9Trew3joDohDoxQ2Ow==",
"cpu": [
"x64",
"ia32",
"arm",
"arm64"
],
"dev": true,
"hasInstallScript": true,
"license": "MIT",
"os": [
"darwin",
"linux",
"win32",
"freebsd"
],
"bin": {
"tsgo": "bin.js"
},
"engines": {
"node": ">=12"
}
},
"node_modules/@tsconfig/node10": {
"version": "1.0.11",
"resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz",

View File

@ -7,7 +7,7 @@
"start": "node --import ./build/src/pathman.js build/src/index.js",
"dev": "ts-node-dev --openssl-legacy-provider -r tsconfig-paths/register src/index.ts ",
"build": "tsc --incremental && ncp static/webui build/static/webui",
"verify": "tsc --noEmit",
"verify": "tsgo --noEmit",
"lint": "eslint --ext .ts .",
"lint:fix": "eslint --fix --ext .ts .",
"prettier": "prettier --write .",
@ -30,6 +30,7 @@
"winston-daily-rotate-file": "^5.0.0"
},
"devDependencies": {
"@rxliuli/tsgo": "^2025.3.31",
"@typescript-eslint/eslint-plugin": "^8.28.0",
"@typescript-eslint/parser": "^8.28.0",
"eslint": "^8",