@soybeanjs/cli 1.7.0-beta.1 → 1.7.0-beta.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import process$1 from "node:process";
13
13
  import { loadConfig } from "c12";
14
14
 
15
15
  //#region package.json
16
- var version = "1.7.0-beta.1";
16
+ var version = "1.7.0-beta.2";
17
17
 
18
18
  //#endregion
19
19
  //#region src/shared/index.ts
@@ -167,11 +167,10 @@ async function ncu(args = ["--deep", "-u"]) {
167
167
  //#endregion
168
168
  //#region src/command/changelog.ts
169
169
  async function genChangelog(options, total = false) {
170
- const changelogPath = join(process.cwd(), "CHANGELOG.md");
171
- const hasChangelog = existsSync(changelogPath);
170
+ const hasChangelog = existsSync(join(process.cwd(), "CHANGELOG.md"));
172
171
  if (total) await generateTotalChangelog(options);
173
172
  else await generateChangelog(options);
174
- if (!hasChangelog) await execCommand("git", [`add ${changelogPath}`]);
173
+ if (!hasChangelog) await execCommand("git", ["add", "CHANGELOG.md"]);
175
174
  }
176
175
 
177
176
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soybeanjs/cli",
3
- "version": "1.7.0-beta.1",
3
+ "version": "1.7.0-beta.2",
4
4
  "description": "SoybeanJS's command line tools",
5
5
  "homepage": "https://github.com/soybeanjs/cli",
6
6
  "bugs": {