Update napcat-types dependency to version 0.0.2

Changed import paths in index.ts to match new napcat-types structure and updated package.json to use napcat-types@0.0.2 instead of workspace reference. Updated pnpm-lock.yaml accordingly.
This commit is contained in:
手瓜一十雪 2026-01-27 19:12:04 +08:00
parent de9d5180fe
commit 805cc32d7f
3 changed files with 21 additions and 7 deletions

View File

@ -1,7 +1,7 @@
import type { ActionMap } from 'napcat-types/dist/napcat-onebot/action/index';
import { EventType } from 'napcat-types/dist/napcat-onebot/event/index';
import type { PluginModule } from 'napcat-types/dist/napcat-onebot/network/plugin-manger';
import type { OB11Message, OB11PostSendMsg } from 'napcat-types/dist/napcat-onebot/types/index';
import type { ActionMap } from 'napcat-types/napcat-onebot/action/index';
import { EventType } from 'napcat-types/napcat-onebot/event/index';
import type { PluginModule } from 'napcat-types/napcat-onebot/network/plugin-manger';
import type { OB11Message, OB11PostSendMsg } from 'napcat-types/napcat-onebot/types/index';
let actions: ActionMap | undefined = undefined;
let startTime: number = Date.now();

View File

@ -6,7 +6,7 @@
"description": "NapCat 内置插件",
"author": "NapNeko",
"dependencies": {
"napcat-types": "workspace:*"
"napcat-types": "0.0.2"
},
"devDependencies": {
"@types/node": "^22.0.1"

View File

@ -223,8 +223,8 @@ importers:
packages/napcat-plugin-builtin:
dependencies:
napcat-types:
specifier: workspace:*
version: link:../napcat-types
specifier: 0.0.2
version: 0.0.2
devDependencies:
'@types/node':
specifier: ^22.0.1
@ -5445,6 +5445,9 @@ packages:
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
hasBin: true
napcat-types@0.0.2:
resolution: {integrity: sha512-CXcuUbK8/iGTf9qeG8juCOQjVzgmudjdQi6stlxTMLv7TzYIpeAg7TAOtAdlpvL+tnFieZ2H1AYrecdlB9l68A==}
napcat.protobuf@1.1.4:
resolution: {integrity: sha512-z7XtLSBJ/PxmYb0VD/w+eYr/X3LyGz+SZ2QejFTOczwt6zWNxy2yV1mTMTvJoc3BWkI3ESVFRxkuT6+pj1tb1Q==}
@ -12813,6 +12816,17 @@ snapshots:
nanoid@3.3.11: {}
napcat-types@0.0.2:
dependencies:
'@types/cors': 2.8.19
'@types/express': 4.17.25
'@types/ip': 1.1.3
'@types/multer': 1.4.13
'@types/node': 22.19.1
'@types/winston': 2.4.4
'@types/ws': 8.18.1
'@types/yaml': 1.9.7
napcat.protobuf@1.1.4:
dependencies:
'@protobuf-ts/runtime': 2.11.1