@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 +0 -1
- package/dist/index.js +3 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/vite.d.ts +1 -0
- package/dist/vite.js +2 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
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
|
-
|
|
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
package/dist/version.js
CHANGED
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 */
|