NapCatQQ/packages/napcat-plugin
手瓜一十雪 9376c37de7 Move external-shims.d.ts to files in tsconfig
external-shims.d.ts was moved from the include array to the files array in tsconfig.json to ensure it is always included explicitly. This change clarifies the intent and may help with TypeScript's file resolution.

Refactor napcat-types package and update plugin deps

Refactored napcat-types to provide more accurate shims, added real type dependencies, and improved build/test scripts. Updated napcat-plugin and napcat-plugin-builtin to depend on napcat-types instead of napcat-onebot. Adjusted imports in affected packages to use napcat-types, and updated pnpm-lock.yaml accordingly.

Add build and test scripts to napcat-types package

Introduced 'build' and 'test' scripts in the napcat-types package.json for easier development and testing. Also updated dependencies in the lockfile.
2026-01-26 15:41:38 +08:00
..
index.ts Move external-shims.d.ts to files in tsconfig 2026-01-26 15:41:38 +08:00
package.json Move external-shims.d.ts to files in tsconfig 2026-01-26 15:41:38 +08:00
README.md refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
tsconfig.json Refactor TypeScript configs to use shared base 2025-11-15 14:00:27 +08:00
vite.config.ts 更新插件示例,修复插件打包问题 (#1486) 2025-12-31 13:58:55 +08:00

Example Plugin

Install

安装只需要将dist产物 index.mjs 目录放入 napcat根目录下plugins/example,如果没有这个目录请创建。