@mbws/plugin-sdk 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -12,6 +12,5 @@ export * from "./dev-mock.js";
12
12
  export * from "./errors.js";
13
13
  export * from "./manifest.js";
14
14
  export * from "./protocol.js";
15
- export * from "./schema-types.js";
16
15
  export * from "./uuid.js";
17
16
  export * from "./version.js";
package/dist/index.js CHANGED
@@ -12,6 +12,8 @@ export * from "./dev-mock.js";
12
12
  export * from "./errors.js";
13
13
  export * from "./manifest.js";
14
14
  export * from "./protocol.js";
15
- export * from "./schema-types.js";
15
+ // schema-types(契约→TS codegen)不进根入口:它依赖 json-schema-to-typescript +
16
+ // prettier(Node 端),浏览器 bundle 拉根入口会炸(0.2.2 打包 bug)——
17
+ // 只经 ./vite 子路径暴露(Node 工具链场景)
16
18
  export * from "./uuid.js";
17
19
  export * from "./version.js";
package/dist/version.d.ts CHANGED
@@ -12,4 +12,4 @@ export declare const PROTOCOL_VERSION: 1;
12
12
  * SDK 自身版本(与 package.json version 保持一致)。
13
13
  * init-ack 上报给宿主做审计,与 manifest.sdk(build 写入)交叉核对。
14
14
  */
15
- export declare const SDK_VERSION = "0.2.2";
15
+ export declare const SDK_VERSION = "0.2.3";
package/dist/version.js CHANGED
@@ -12,4 +12,4 @@ export const PROTOCOL_VERSION = 1;
12
12
  * SDK 自身版本(与 package.json version 保持一致)。
13
13
  * init-ack 上报给宿主做审计,与 manifest.sdk(build 写入)交叉核对。
14
14
  */
15
- export const SDK_VERSION = "0.2.2";
15
+ export const SDK_VERSION = "0.2.3";
package/dist/vite.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import type { Plugin } from "vite";
2
2
  import { type MbwsUserConfig } from "./config.js";
3
+ export { type ContractTypesInput, generateContractTypes } from "./schema-types.js";
3
4
  export interface MbwsVitePluginOptions {
4
5
  /** mbws.config.ts 的配置(defineConfig 回传值)——静态合同与动态开发配置同住 */
5
6
  config: MbwsUserConfig;
package/dist/vite.js CHANGED
@@ -18,6 +18,8 @@ import fs from "node:fs";
18
18
  import path from "node:path";
19
19
  import { buildManifest } from "./config.js";
20
20
  import { generateContractTypes } from "./schema-types.js";
21
+ // 契约类型生成经本子路径暴露(Node 端工具链用;依赖 prettier,不进根入口)
22
+ export { generateContractTypes } from "./schema-types.js";
21
23
  /** dev 契约拉取的专属命名空间:同源走插件中间件转发,免 CORS */
22
24
  const DEV_CONTRACT_BASE = "/__mbws__";
23
25
  /** 后端缺省地址:插件开发者缺省连线上(拉线上 spec),本地联调走 env 或 apiBaseUrl */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mbws/plugin-sdk",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Moye 插件开发 SDK——panel/viewer 与宿主的类型定义与运行时端口适配",
5
5
  "license": "MIT",
6
6
  "type": "module",