fix(types): preserve complete nested types during post-processing
Release Tag / validate-version (push) Canceled after 0s
Release Tag / trigger-release (push) Canceled after 0s

Use the TypeScript parser instead of a regex that truncates nested generics and function types. Validate generated syntax and add a regression test. Include workspace aliases and PTY ambient declarations. The full type package build still reports six errors in third-party node-pty source; this commit does not claim to resolve that remaining issue.
This commit is contained in:
手瓜一十雪 committed 2026-10-06 17:51:21 +08:00
1 parent 9109b8cfe2
commit 4f1401da78
4 files changed
+77 -6

No files matched your search

+9 -1
View File
@@ -12,6 +12,12 @@
"napcat-core": [
"../../packages/napcat-core/index.ts"
],
"napcat-core/*": [
"../../packages/napcat-core/*"
],
"napcat-webui-backend/*": [
"../../packages/napcat-webui-backend/*"
],
"napcat-onebot": [
"../../packages/napcat-onebot/index.ts"
],
@@ -40,6 +46,8 @@
},
"include": [
"./index.ts",
"../napcat-pty/node-pty.d.ts",
"../napcat-pty/native.d.ts",
"../napcat-core/**/*.ts",
"../napcat-onebot/**/*.ts",
"../napcat-common/**/*.ts"
@@ -48,4 +56,4 @@
"node_modules",
"dist"
]
}
}