diff --git a/packages/napcat-plugin-builtin/index.ts b/packages/napcat-plugin-builtin/index.ts index 858d7847..a717cadc 100644 --- a/packages/napcat-plugin-builtin/index.ts +++ b/packages/napcat-plugin-builtin/index.ts @@ -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(); diff --git a/packages/napcat-plugin-builtin/package.json b/packages/napcat-plugin-builtin/package.json index 93833dfe..3d3f379f 100644 --- a/packages/napcat-plugin-builtin/package.json +++ b/packages/napcat-plugin-builtin/package.json @@ -6,7 +6,7 @@ "description": "NapCat 内置插件", "author": "NapNeko", "dependencies": { - "napcat-types": "workspace:*" + "napcat-types": "0.0.2" }, "devDependencies": { "@types/node": "^22.0.1" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bcf80996..c63e3922 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -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