@pubinfo-pr/cli 0.182.5 → 0.187.1

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.
@@ -35,8 +35,7 @@ var commit_default = {
35
35
  }
36
36
  },
37
37
  run: async ({ args }) => {
38
- if (!isGitRepository()) console.error("[pubinfo-pr commit] 未检测到 Git 仓库。请在已初始化的 Git 项目中运行,或执行 `git init` 后重试。");
39
- else {
38
+ if (isGitRepository()) {
40
39
  const { createCzConfig, createGitMessage, runCzConfig, runNpx, runSimpleGitHooks, runGitMessage, lintMessage, runPrompt, isCommitlintEnabled, configureGitHooksPath } = await import("@pubinfo-pr/commitlint");
41
40
  const commitlintEnabled = await isCommitlintEnabled();
42
41
  if (args.init) {
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import { fileURLToPath } from "node:url";
3
3
 
4
4
  //#region package.json
5
5
  var name = "@pubinfo-pr/cli";
6
- var version = "2.1.3";
6
+ var version = "2.1.4";
7
7
  var description = "CLI for Pubinfo";
8
8
 
9
9
  //#endregion
@@ -14,7 +14,7 @@ const commands = {
14
14
  build: () => import("./build-TpYdEV_-.js").then(_rDefault),
15
15
  preview: () => import("./preview-BVVgNnhp.js").then(_rDefault),
16
16
  setup: () => import("./setup-CACbESTE.js").then(_rDefault),
17
- commit: () => import("./commit-r-63XXfJ.js").then(_rDefault),
17
+ commit: () => import("./commit-BKlPg8Na.js").then(_rDefault),
18
18
  icon: () => import("./icon-B2EyVw8p.js").then(_rDefault),
19
19
  upgrade: () => import("./upgrade-B-Zl5nkj.js").then(_rDefault),
20
20
  generate: () => import("./generate-9OAGGbjc.js").then(_rDefault),
@@ -111,7 +111,7 @@ function detectModulesFromPackage(pkg) {
111
111
  return modules;
112
112
  }
113
113
  function detectOpenapiEnabled(pkg) {
114
- return hasDependency(pkg, "@pubinfo-pr/openapi") || hasDependency(pkg, "@pubinfo-pr/preset-openapi") || Boolean(pkg.scripts?.openapi);
114
+ return hasDependency(pkg, "@pubinfo/openapi") || hasDependency(pkg, "@pubinfo/preset-openapi") || Boolean(pkg.scripts?.openapi);
115
115
  }
116
116
  function resolvePubinfoVersionFromPackage(pkg) {
117
117
  return pkg.dependencies?.pubinfo || pkg.devDependencies?.pubinfo;
@@ -17,7 +17,7 @@ const command = defineCommand({
17
17
  ...pkg.peerDependencies
18
18
  };
19
19
  function isPubinfoRelated(name) {
20
- return name === "pubinfo-pr" || name.startsWith("@pubinfo-pr/module-");
20
+ return name === "pubinfo-pr" || name.startsWith("@pubinfo/module-");
21
21
  }
22
22
  const pubinfoDeps = Object.keys(deps).filter(isPubinfoRelated);
23
23
  if (!pubinfoDeps.length) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pubinfo-pr/cli",
3
3
  "type": "module",
4
- "version": "0.182.5",
4
+ "version": "0.187.1",
5
5
  "description": "CLI for Pubinfo",
6
6
  "exports": {
7
7
  ".": "./bin/pubinfo.mjs"
@@ -18,20 +18,20 @@
18
18
  "node": "^20.19.0 || >=22.12.0"
19
19
  },
20
20
  "peerDependencies": {
21
- "@pubinfo-pr/vite": "0.182.5"
21
+ "@pubinfo-pr/vite": "0.187.1"
22
22
  },
23
23
  "dependencies": {
24
- "@pubinfo-pr/commitlint": "0.182.5",
25
- "@pubinfo-pr/shared": "0.182.5",
24
+ "@pubinfo-pr/commitlint": "0.187.1",
25
+ "@pubinfo-pr/shared": "0.187.1",
26
26
  "cheerio": "^1.1.2",
27
27
  "citty": "^0.1.6",
28
- "create-pubinfo-pr": "0.182.5",
28
+ "create-pubinfo-pr": "0.187.1",
29
29
  "execa": "^9.6.0",
30
30
  "globby": "^14.1.0",
31
31
  "pkg-types": "^2.3.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@pubinfo-pr/vite": "0.182.5",
34
+ "@pubinfo-pr/vite": "0.187.1",
35
35
  "@types/node": "^24.0.10"
36
36
  },
37
37
  "scripts": {