alex-c-line 2.11.0 → 2.11.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.cjs +4 -3
- package/dist/index.js +4 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1103,7 +1103,8 @@ function root(program) {
|
|
|
1103
1103
|
//#endregion
|
|
1104
1104
|
//#region src/cli/commands/template/changeRequest/helpers/resolveBasename.ts
|
|
1105
1105
|
function resolveBasename(basename) {
|
|
1106
|
-
|
|
1106
|
+
const today = /* @__PURE__ */ new Date();
|
|
1107
|
+
return `${`${today.getFullYear()}-${String(today.getMonth() + 1).padStart(2, "0")}-${String(today.getDate()).padStart(2, "0")}`}_${basename.trim().replace(/[.!?/]+$/, "").toLowerCase().replace(/\s+/g, "_")}`;
|
|
1107
1108
|
}
|
|
1108
1109
|
//#endregion
|
|
1109
1110
|
//#region src/utility/fileSystem/getNextFileName.ts
|
|
@@ -1144,7 +1145,7 @@ function templateChangeRequestCreate(program) {
|
|
|
1144
1145
|
const newFileName = getNextFileName(await (0, node_fs_promises.readdir)(resolvedOutputDirectory), `${resolveBasename(templateVariables.reason)}.md`);
|
|
1145
1146
|
const outputPath = node_path.default.join(resolvedOutputDirectory, newFileName);
|
|
1146
1147
|
await (0, node_fs_promises.writeFile)(outputPath, newDocumentContents);
|
|
1147
|
-
console.info(
|
|
1148
|
+
console.info(outputPath);
|
|
1148
1149
|
});
|
|
1149
1150
|
}
|
|
1150
1151
|
//#endregion
|
|
@@ -1484,7 +1485,7 @@ function template(program) {
|
|
|
1484
1485
|
//#endregion
|
|
1485
1486
|
//#region package.json
|
|
1486
1487
|
var name = "alex-c-line";
|
|
1487
|
-
var version$1 = "2.11.
|
|
1488
|
+
var version$1 = "2.11.2";
|
|
1488
1489
|
var description = "Command-line tool with commands to streamline the developer workflow.";
|
|
1489
1490
|
//#endregion
|
|
1490
1491
|
//#region src/utility/updates/checkUpdate.ts
|
package/dist/index.js
CHANGED
|
@@ -1072,7 +1072,8 @@ function root(program) {
|
|
|
1072
1072
|
//#endregion
|
|
1073
1073
|
//#region src/cli/commands/template/changeRequest/helpers/resolveBasename.ts
|
|
1074
1074
|
function resolveBasename(basename) {
|
|
1075
|
-
|
|
1075
|
+
const today = /* @__PURE__ */ new Date();
|
|
1076
|
+
return `${`${today.getFullYear()}-${String(today.getMonth() + 1).padStart(2, "0")}-${String(today.getDate()).padStart(2, "0")}`}_${basename.trim().replace(/[.!?/]+$/, "").toLowerCase().replace(/\s+/g, "_")}`;
|
|
1076
1077
|
}
|
|
1077
1078
|
//#endregion
|
|
1078
1079
|
//#region src/utility/fileSystem/getNextFileName.ts
|
|
@@ -1113,7 +1114,7 @@ function templateChangeRequestCreate(program) {
|
|
|
1113
1114
|
const newFileName = getNextFileName(await readdir(resolvedOutputDirectory), `${resolveBasename(templateVariables.reason)}.md`);
|
|
1114
1115
|
const outputPath = path.join(resolvedOutputDirectory, newFileName);
|
|
1115
1116
|
await writeFile(outputPath, newDocumentContents);
|
|
1116
|
-
console.info(
|
|
1117
|
+
console.info(outputPath);
|
|
1117
1118
|
});
|
|
1118
1119
|
}
|
|
1119
1120
|
//#endregion
|
|
@@ -1453,7 +1454,7 @@ function template(program) {
|
|
|
1453
1454
|
//#endregion
|
|
1454
1455
|
//#region package.json
|
|
1455
1456
|
var name = "alex-c-line";
|
|
1456
|
-
var version$1 = "2.11.
|
|
1457
|
+
var version$1 = "2.11.2";
|
|
1457
1458
|
var description = "Command-line tool with commands to streamline the developer workflow.";
|
|
1458
1459
|
//#endregion
|
|
1459
1460
|
//#region src/utility/updates/checkUpdate.ts
|