Files
NapCatQQ/packages/napcat-types/package.json
T
手瓜一十雪 4f1401da78
Release Tag / validate-version (push) Canceled after 0s
Release Tag / trigger-release (push) Canceled after 0s
fix(types): preserve complete nested types during post-processing
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.
2026-10-06 17:51:21 +08:00

26 lines
700 B
JSON

{
"name": "napcat-types",
"version": "0.0.1",
"private": false,
"type": "module",
"types": "./dist/napcat-types/index.d.ts",
"files": [
"dist/**/*"
],
"scripts": {
"build": "tsc --project tsconfig.json && tsc-alias --project tsconfig.json --outDir dist && node ./scripts/post-build.mjs && node ./scripts/copy-dist.mjs",
"test": "pnpm -s exec tsc --project tsconfig.json --noEmit",
"publish": "cd dist && npm publish"
},
"dependencies": {
"@types/node": "^22.10.7",
"@sinclair/typebox": "^0.34.38"
},
"devDependencies": {
"napcat-core": "workspace:*",
"napcat-onebot": "workspace:*",
"tsc-alias": "^1.8.16",
"typescript": "^5.3.0"
}
}