@cnbcool/cnb-api-generate 1.2.1 → 1.2.2

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.
@@ -2,9 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getGenerateLicense = getGenerateLicense;
4
4
  exports.getApiGenerateLicense = getApiGenerateLicense;
5
- const fs_1 = require("fs");
6
- const path_1 = require("path");
7
- const pkg = JSON.parse((0, fs_1.readFileSync)((0, path_1.join)(__dirname, '../../package.json'), 'utf8'));
8
5
  function getGenerateLicense({ source }) {
9
6
  return `// @ts-nocheck
10
7
  /* tslint:disable */
@@ -14,9 +11,8 @@ function getGenerateLicense({ source }) {
14
11
  * ## THIS FILE WAS GENERATED VIA CNB-API-GENERATE ##
15
12
  * ## ##
16
13
  * ## AUTHOR: bapelin ##
17
- * ## SOURCE: https://cnb.cool/cnb/frontend-science/cnb-api-generate ##
14
+ * ## SOURCE: https://cnb.cool/cnb/skills/cnb-api-generate ##
18
15
  * -------------------------------------------------------------------------
19
- * @Version ${pkg.version}
20
16
  * @Source ${source}
21
17
  */
22
18
  `;
@@ -30,9 +26,8 @@ function getApiGenerateLicense({ source }) {
30
26
  * ## THIS FILE WAS GENERATED VIA CNB-API-GENERATE ##
31
27
  * ## ##
32
28
  * ## AUTHOR: bapelin ##
33
- * ## SOURCE: https://cnb.cool/cnb/frontend-science/cnb-api-generate ##
29
+ * ## SOURCE: https://cnb.cool/cnb/skills/cnb-api-generate ##
34
30
  * -------------------------------------------------------------------------
35
- * @Version ${pkg.version}
36
31
  * @Source ${source}
37
32
  */
38
33
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cnbcool/cnb-api-generate",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "main": "./built/index.js",
5
5
  "module": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -13,6 +13,11 @@ Issue 模块: get, list-comments, comment, close, open, list-labels, add-labels,
13
13
  PR 模块: get, list-files, list-commits, list-comments, comment, list-labels, add-labels, check-status, list-reviews, list-assignees
14
14
 
15
15
  用法: `<$CNB_CLI_CMD$> issues get` — 参数均从环境变量自动获取,无需手动传入
16
+ 不确定快捷命令名称时执行 `<$CNB_CLI_CMD$> --short` 查看
17
+
18
+ --summary: 只输出核心摘要字段,不需要完整详情时应优先添加。支持的命令:
19
+ - Issue: get, close, open, add-assignees
20
+ - PR: get, list-files, list-commits
16
21
 
17
22
  仅以下命令需要 --data,其余快捷命令无需任何参数:
18
23
  - comment: --data '{"body":"评论内容"}'