@ningboyz/wxmp 1.0.16 → 1.0.18

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/README.md CHANGED
@@ -71,3 +71,22 @@ npm run build
71
71
  ```
72
72
 
73
73
  构建产物和类型声明输出到 `es/`。小程序更新依赖后,在微信开发者工具执行“工具 → 构建 npm”。
74
+
75
+ ## 脚本发布
76
+
77
+ 在仓库根目录运行:
78
+
79
+ ```powershell
80
+ # 先发布 types 编译版,再使用本次精确版本构建发布 wxmp
81
+ python publish_es.py
82
+ ```
83
+
84
+ 脚本先发布 types 编译版并等待 Registry 可查询,再从本地和 npm 已发布 wxmp 正式版本中的较大版本自动递增 patch,
85
+ 在临时目录复制当前 `wxmp/src`,将 `@ningboyz/types` 依赖锁定为具体的 `x.y.z-es.N`,
86
+ 安装该版本后构建并预演。构建依赖不复用本机 `wxmp/node_modules`,不会使用旧 types 构建新包。
87
+ 正式发布先使用 `release` 标签,检查已发布依赖正确后才切换 wxmp 的 `latest`,最后通知钉钉。
88
+ `types` 的 `latest` 不受影响。
89
+
90
+ 仓库的 `package.json`、锁文件和 Git 状态不由脚本改写;本地未提交的源码也会参与构建。
91
+ 版本和依赖只写入临时发布清单,因此本地版本号可能落后于 npm,下一次发布会重新查询 Registry。
92
+ 通知失败不撤销已成功的 npm 发布;仅需要补通知时不要重新运行发布命令。
@@ -10,6 +10,6 @@ declare class UnitRequest {
10
10
  * @param params
11
11
  * @returns
12
12
  */
13
- selectdb(querys: ICoreUnitSelectdbQuerys, params: object): Promise<import('@ningboyz/types/src/response').IResponse<TCore.IUnitResponse[]>>;
13
+ selectdb(querys: ICoreUnitSelectdbQuerys, params: object): Promise<import('@ningboyz/types/es/response/IResponse.js').IResponse<TCore.IUnitResponse[]>>;
14
14
  }
15
15
  export default UnitRequest;
@@ -9,6 +9,6 @@ declare class UserRequest {
9
9
  * @param params
10
10
  * @returns
11
11
  */
12
- login(params: IWxLoginParams): Promise<import('@ningboyz/types/src/response').IResponse<TCore.IUserResponse[]>>;
12
+ login(params: IWxLoginParams): Promise<import('@ningboyz/types/es/response/IResponse.js').IResponse<TCore.IUserResponse[]>>;
13
13
  }
14
14
  export default UserRequest;
@@ -9,13 +9,13 @@ declare class MainRequest {
9
9
  * @param querys
10
10
  * @returns
11
11
  */
12
- get4noti(querys: INotiMainGet4NotiQuerys): Promise<import('@ningboyz/types/src/response').IResponse<TNoti.INotiMainResponse[]>>;
12
+ get4noti(querys: INotiMainGet4NotiQuerys): Promise<import('@ningboyz/types/es/response/IResponse.js').IResponse<TNoti.INotiMainResponse[]>>;
13
13
  /**
14
14
  * 获取公告详情
15
15
  * @param querys
16
16
  * @param params
17
17
  * @returns
18
18
  */
19
- detaildb(querys: INotiMainDetaildbQuerys, params: object): Promise<import('@ningboyz/types/src/response').IResponse<TNoti.INotiMainResponse[]>>;
19
+ detaildb(querys: INotiMainDetaildbQuerys, params: object): Promise<import('@ningboyz/types/es/response/IResponse.js').IResponse<TNoti.INotiMainResponse[]>>;
20
20
  }
21
21
  export default MainRequest;
@@ -4,8 +4,8 @@ declare class EnvrRequest {
4
4
  private wxRequest;
5
5
  constructor(wxRequest: WxRequest);
6
6
  /** 获取启动配置,接口保持明文。 */
7
- startcfg(): Promise<import('@ningboyz/types/src/response').IResponse<TWtui.IWtuiMainResponse[]>>;
7
+ startcfg(): Promise<import('@ningboyz/types/es/response/IResponse.js').IResponse<TWtui.IWtuiMainResponse[]>>;
8
8
  /** 获取 SM2 公钥,接口保持明文。 */
9
- startkey(): Promise<import('@ningboyz/types/src/response').IResponse<TEnc.IEncConfigResponse[]>>;
9
+ startkey(): Promise<import('@ningboyz/types/es/response/IResponse.js').IResponse<TEnc.IEncConfigResponse[]>>;
10
10
  }
11
11
  export default EnvrRequest;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/wxmp",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "private": false,
5
5
  "description": "宁波甬政微信小程序库",
6
6
  "author": "nbyt-syq",
@@ -22,14 +22,14 @@
22
22
  ],
23
23
  "scripts": {
24
24
  "build": "vite build",
25
- "prettier": "prettier --config ./.prettierrc --write \"./**/*.{ts,tsx}\" "
25
+ "typecheck": "tsc --noEmit"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public",
29
29
  "registry": "https://registry.npmjs.org/"
30
30
  },
31
31
  "dependencies": {
32
- "@ningboyz/types": "1.8.88-es.0",
32
+ "@ningboyz/types": "1.8.90-es.0",
33
33
  "lodash": "4.17.21"
34
34
  },
35
35
  "devDependencies": {