@soybeanjs/cli 1.6.2 → 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.
- package/dist/index.js +3 -4
- 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.
|
|
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
|
|
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", [
|
|
173
|
+
if (!hasChangelog) await execCommand("git", ["add", "CHANGELOG.md"]);
|
|
175
174
|
}
|
|
176
175
|
|
|
177
176
|
//#endregion
|