NapCatQQ/packages
手瓜一十雪 542036f46e Refactor type build: inline external types, simplify scripts
Removed custom build scripts for copying and inlining types, consolidating all post-build logic into a single enhanced post-build.mjs script. The new script processes .d.ts files, inlines external module types, updates imports, and copies necessary files to dist, eliminating the need for external-shims and simplifying the build process. Updated package.json scripts accordingly.

Refactor type inlining: remove shims, auto-extract types

Removed external-shims.d.ts and its references, replacing manual shims with an automated script that extracts type definitions from node_modules. Updated build scripts, dependencies, and test files to support the new inlining process. The inline-types.mjs script now scans for external imports, generates inline type files, and rewrites imports as import type, eliminating the need for hand-written shims.

Add type inlining script and update build process

Introduced a new script (inline-types.mjs) to inline external type dependencies into the dist directory, updated the build process to use this script, and removed the now-unnecessary external-shims.d.ts from the copy-dist script. Added a test file to verify inlined types, updated dependencies to include ts-morph, and adjusted package.json and pnpm-lock.yaml accordingly.
2026-01-29 15:27:46 +08:00
..
napcat-common Add plugin install SSE API and mirror selection UI 2026-01-27 22:51:45 +08:00
napcat-core Add payload and return schemas to OneBot actions (#1549) 2026-01-27 19:07:17 +08:00
napcat-develop Disable multi-process in development environment 2026-01-17 15:12:30 +08:00
napcat-framework Update loadQQWrapper to accept QQMainPath argument 2026-01-22 14:49:17 +08:00
napcat-image-size Refactor TypeScript configs to use shared base 2025-11-15 14:00:27 +08:00
napcat-napi-loader refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
napcat-native Update ffmpegAddon binary for darwin arm64 2026-01-22 14:53:58 +08:00
napcat-onebot Add plugin logger interface and update builtin plugin 2026-01-28 15:07:06 +08:00
napcat-plugin-builtin Add plugin logger interface and update builtin plugin 2026-01-28 15:07:06 +08:00
napcat-protobuf Add ESLint config and update code style 2025-11-15 16:21:59 +08:00
napcat-pty Add backend and frontend support for NapCat auto-update 2025-11-19 21:05:08 +08:00
napcat-qrcode Remove unused dependencies from package.json 2025-11-16 11:02:21 +08:00
napcat-schema 修复 OpenAPI 导出的相应接口缺失 stream 字段 2026-01-29 14:14:11 +08:00
napcat-shell feat: 修复mac问题 2026-01-22 14:42:42 +08:00
napcat-shell-loader Pass CLI args to worker and update login script example 2026-01-17 18:54:18 +08:00
napcat-test Add ESLint config and update code style 2025-11-15 16:21:59 +08:00
napcat-types Refactor type build: inline external types, simplify scripts 2026-01-29 15:27:46 +08:00
napcat-universal Refactor TypeScript configs to use shared base 2025-11-15 14:00:27 +08:00
napcat-vite feat: 优化离线重连机制,支持通过前端实现重新登录 2026-01-17 15:38:24 +08:00
napcat-webui-backend Refactor plugin identification to use package name and dirname 2026-01-28 15:02:47 +08:00
napcat-webui-frontend 修复下载插件后插件列表显示开启 (#1560) 2026-01-29 13:12:54 +08:00