alex-c-line 2.0.2 → 2.0.3
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 +27 -27
- package/dist/index.js +27 -27
- package/package.json +1 -1
- package/templates/pullRequest/infrastructure/base.md +0 -2
- package/templates/pullRequest/infrastructure/bug_fix.md +0 -1
- package/templates/pullRequest/infrastructure/documentation_change.md +0 -1
- package/templates/pullRequest/infrastructure/irreversible_destruction.md +0 -1
- package/templates/pullRequest/infrastructure/manual_change.md +0 -1
- package/templates/pullRequest/infrastructure/miscellaneous.md +0 -1
- package/templates/pullRequest/infrastructure/new_feature.md +0 -1
- package/templates/pullRequest/infrastructure/refactor.md +0 -1
- package/templates/pullRequest/infrastructure/resource_update.md +0 -1
- package/templates/pullRequest/infrastructure/tooling_change.md +0 -1
package/dist/index.cjs
CHANGED
|
@@ -826,7 +826,7 @@ function root(program) {
|
|
|
826
826
|
});
|
|
827
827
|
}
|
|
828
828
|
//#endregion
|
|
829
|
-
//#region src/utility/markdownTemplates/pullRequest/
|
|
829
|
+
//#region src/utility/markdownTemplates/pullRequest/createPullRequestTemplatesFromTemplates.ts
|
|
830
830
|
const __filename$2 = (0, node_url.fileURLToPath)(require("url").pathToFileURL(__filename).href);
|
|
831
831
|
function getTemplateVariables$1(config) {
|
|
832
832
|
if (config.category === "general") return {
|
|
@@ -839,7 +839,7 @@ function getTemplateVariables$1(config) {
|
|
|
839
839
|
requireConfirmationFrom: config.requireConfirmationFrom
|
|
840
840
|
};
|
|
841
841
|
}
|
|
842
|
-
async function
|
|
842
|
+
async function createPullRequestTemplatesFromTemplates(config) {
|
|
843
843
|
const templateVariables = getTemplateVariables$1(config);
|
|
844
844
|
const { category } = config;
|
|
845
845
|
const templatesPath = node_path.default.join(await findPackageRoot(node_path.default.dirname(__filename$2), "alex-c-line"), "templates", "pullRequest");
|
|
@@ -883,7 +883,7 @@ function templatePullRequestCreate(program) {
|
|
|
883
883
|
}));
|
|
884
884
|
const gitHubPath = node_path.default.join(process.cwd(), ".github");
|
|
885
885
|
const pullRequestTemplatePath = node_path.default.join(gitHubPath, "PULL_REQUEST_TEMPLATE");
|
|
886
|
-
const allTemplates = await
|
|
886
|
+
const allTemplates = await createPullRequestTemplatesFromTemplates({
|
|
887
887
|
...parsedOptions,
|
|
888
888
|
projectName
|
|
889
889
|
});
|
|
@@ -924,17 +924,6 @@ function parseReleaseStatus(data) {
|
|
|
924
924
|
return ReleaseStatus[normalisedStringifiedData];
|
|
925
925
|
}
|
|
926
926
|
//#endregion
|
|
927
|
-
//#region src/utility/markdownTemplates/createMarkdownComment.ts
|
|
928
|
-
function createMarkdownComment(comment) {
|
|
929
|
-
if (comment.startsWith("<!--") && comment.endsWith("-->")) return comment;
|
|
930
|
-
return `<!-- ${comment} -->`;
|
|
931
|
-
}
|
|
932
|
-
//#endregion
|
|
933
|
-
//#region src/utility/markdownTemplates/createMarkdownCommentPair.ts
|
|
934
|
-
function createMarkdownCommentPair(comment) {
|
|
935
|
-
return [createMarkdownComment(`${comment}-start`), createMarkdownComment(`${comment}-end`)];
|
|
936
|
-
}
|
|
937
|
-
//#endregion
|
|
938
927
|
//#region src/utility/markdownTemplates/getMarkdownBlock.ts
|
|
939
928
|
function getMarkdownBlock(content, startMarker, endMarker) {
|
|
940
929
|
const startIndex = content.indexOf(startMarker);
|
|
@@ -943,6 +932,17 @@ function getMarkdownBlock(content, startMarker, endMarker) {
|
|
|
943
932
|
return content.slice(startIndex + startMarker.length, endIndex).trim();
|
|
944
933
|
}
|
|
945
934
|
//#endregion
|
|
935
|
+
//#region src/utility/markdownTemplates/getMarkdownComment.ts
|
|
936
|
+
function createMarkdownComment(comment) {
|
|
937
|
+
if (comment.startsWith("<!--") && comment.endsWith("-->")) return comment;
|
|
938
|
+
return `<!-- ${comment} -->`;
|
|
939
|
+
}
|
|
940
|
+
//#endregion
|
|
941
|
+
//#region src/utility/markdownTemplates/getMarkdownCommentPair.ts
|
|
942
|
+
function getMarkdownCommentPair(comment) {
|
|
943
|
+
return [createMarkdownComment(`${comment}-start`), createMarkdownComment(`${comment}-end`)];
|
|
944
|
+
}
|
|
945
|
+
//#endregion
|
|
946
946
|
//#region src/utility/markdownTemplates/normaliseMarkdown.ts
|
|
947
947
|
function normaliseMarkdown(markdownString) {
|
|
948
948
|
return markdownString.replace(/\r\n/g, "\n").split("\n").map((line) => {
|
|
@@ -952,7 +952,7 @@ function normaliseMarkdown(markdownString) {
|
|
|
952
952
|
//#endregion
|
|
953
953
|
//#region src/utility/markdownTemplates/releaseNote/getReleaseStatus.ts
|
|
954
954
|
function getReleaseStatus(content) {
|
|
955
|
-
const releaseStatus = getMarkdownBlock(content, ...
|
|
955
|
+
const releaseStatus = getMarkdownBlock(content, ...getMarkdownCommentPair("alex-c-line-release-status"));
|
|
956
956
|
if (releaseStatus === null) throw new _alextheman_utility.DataError({ releaseStatus }, "RELEASE_STATUS_NOT_FOUND", "Could not find release status in document.");
|
|
957
957
|
return (0, _alextheman_utility.parseZodSchema)(zod.default.enum(ReleaseStatus), normaliseMarkdown(releaseStatus.split(":")[1]));
|
|
958
958
|
}
|
|
@@ -975,7 +975,7 @@ async function validateReleaseDocument(projectName, version, content, allowedRel
|
|
|
975
975
|
Expected: ${allowedReleaseStatuses.length === 1 ? `"${allowedReleaseStatus}"` : `one of: ${allowedReleaseStatuses.map((status) => {
|
|
976
976
|
return `"${status}"`;
|
|
977
977
|
}).join(", ")}`}`);
|
|
978
|
-
const releaseSummaryHeaders =
|
|
978
|
+
const releaseSummaryHeaders = getMarkdownCommentPair("alex-c-line-release-summary");
|
|
979
979
|
const summary = getMarkdownBlock(content, ...releaseSummaryHeaders);
|
|
980
980
|
const templateContent = await (0, node_fs_promises.readFile)(node_path.default.join(await findPackageRoot(node_path.default.dirname(__filename$1), "alex-c-line"), "templates", "releases", `${version.type}.md`), "utf-8");
|
|
981
981
|
const templateSummary = getMarkdownBlock(templateContent, ...releaseSummaryHeaders)?.replaceAll(`{{projectName}}`, projectName);
|
|
@@ -1014,11 +1014,6 @@ function templateReleaseNoteCheck(program) {
|
|
|
1014
1014
|
});
|
|
1015
1015
|
}
|
|
1016
1016
|
//#endregion
|
|
1017
|
-
//#region src/utility/markdownTemplates/releaseNote/getReleaseNotePath.ts
|
|
1018
|
-
function getReleaseNotePath(versionNumber) {
|
|
1019
|
-
return node_path.default.join("docs", "releases", versionNumber.format({ omitMinor: true }), versionNumber.format({ omitPatch: true }), `${versionNumber}.md`);
|
|
1020
|
-
}
|
|
1021
|
-
//#endregion
|
|
1022
1017
|
//#region src/utility/markdownTemplates/getReleaseNoteTemplatesPath.ts
|
|
1023
1018
|
async function getReleaseNoteTemplatesPath() {
|
|
1024
1019
|
return node_path.default.join(await ALEX_C_LINE_PACKAGE_ROOT, "templates", "releases");
|
|
@@ -1042,7 +1037,7 @@ function replaceMarkdownPlaceholders(rawContent, templateVariables) {
|
|
|
1042
1037
|
return finalContent;
|
|
1043
1038
|
}
|
|
1044
1039
|
//#endregion
|
|
1045
|
-
//#region src/utility/markdownTemplates/releaseNote/
|
|
1040
|
+
//#region src/utility/markdownTemplates/releaseNote/createReleaseNoteFromTemplates.ts
|
|
1046
1041
|
async function getTemplateVariables(projectName, version, templateVariables) {
|
|
1047
1042
|
if ("editableSection" in templateVariables && templateVariables.editableSection) {
|
|
1048
1043
|
const { status = "In progress", editableSection } = templateVariables;
|
|
@@ -1066,12 +1061,17 @@ async function getTemplateVariables(projectName, version, templateVariables) {
|
|
|
1066
1061
|
editableSection
|
|
1067
1062
|
};
|
|
1068
1063
|
}
|
|
1069
|
-
async function
|
|
1064
|
+
async function createReleaseNoteFromTemplates(projectName, version, metadata) {
|
|
1070
1065
|
const templateVariables = await getTemplateVariables(projectName, version, metadata);
|
|
1071
1066
|
const templatesPath = node_path.default.join(await ALEX_C_LINE_PACKAGE_ROOT, "templates", "releases");
|
|
1072
1067
|
return replaceMarkdownPlaceholders(await (0, node_fs_promises.readFile)(node_path.default.join(templatesPath, `${version.type}.md`), "utf-8"), templateVariables);
|
|
1073
1068
|
}
|
|
1074
1069
|
//#endregion
|
|
1070
|
+
//#region src/utility/markdownTemplates/releaseNote/getReleaseNotePath.ts
|
|
1071
|
+
function getReleaseNotePath(versionNumber) {
|
|
1072
|
+
return node_path.default.join("docs", "releases", versionNumber.format({ omitMinor: true }), versionNumber.format({ omitPatch: true }), `${versionNumber}.md`);
|
|
1073
|
+
}
|
|
1074
|
+
//#endregion
|
|
1075
1075
|
//#region src/cli/commands/template/releaseNote/create.ts
|
|
1076
1076
|
function templateReleaseNoteCreate(program) {
|
|
1077
1077
|
program.command("create").argument("[createFor]", _alextheman_utility.normaliseIndents`
|
|
@@ -1093,7 +1093,7 @@ function templateReleaseNoteCreate(program) {
|
|
|
1093
1093
|
}), packageInfo);
|
|
1094
1094
|
const versionNumber = target instanceof _alextheman_utility.VersionNumber ? target : target ? new _alextheman_utility.VersionNumber(packageVersion).increment(target) : new _alextheman_utility.VersionNumber(packageVersion);
|
|
1095
1095
|
const releaseNotePath = getReleaseNotePath(versionNumber);
|
|
1096
|
-
const releaseNoteTemplate = await
|
|
1096
|
+
const releaseNoteTemplate = await createReleaseNoteFromTemplates(name, versionNumber, { status: "In progress" });
|
|
1097
1097
|
try {
|
|
1098
1098
|
await (0, node_fs_promises.mkdir)(node_path.default.dirname(releaseNotePath), { recursive: true });
|
|
1099
1099
|
await (0, node_fs_promises.writeFile)(releaseNotePath, releaseNoteTemplate, { flag: "wx" });
|
|
@@ -1189,13 +1189,13 @@ function templateReleaseNoteSetStatus(program) {
|
|
|
1189
1189
|
const fullDocumentPath = node_path.default.join(process.cwd(), documentPath);
|
|
1190
1190
|
const initialDocument = await (0, node_fs_promises.readFile)(fullDocumentPath, "utf-8");
|
|
1191
1191
|
await validateReleaseDocument(name, versionNumber, initialDocument);
|
|
1192
|
-
const [userEditableSectionStart, userEditableSectionEnd] =
|
|
1192
|
+
const [userEditableSectionStart, userEditableSectionEnd] = getMarkdownCommentPair("user-editable-section");
|
|
1193
1193
|
const editableSection = getMarkdownBlock(initialDocument, userEditableSectionStart, userEditableSectionEnd);
|
|
1194
1194
|
if (editableSection === null) throw new _alextheman_utility.DataError({
|
|
1195
1195
|
startMarker: userEditableSectionStart,
|
|
1196
1196
|
endMarker: userEditableSectionEnd
|
|
1197
1197
|
}, "EDITABLE_SECTION_NOT_FOUND", "Could not find editable section in the provided document.");
|
|
1198
|
-
await (0, node_fs_promises.writeFile)(fullDocumentPath, await
|
|
1198
|
+
await (0, node_fs_promises.writeFile)(fullDocumentPath, await createReleaseNoteFromTemplates(name, versionNumber, {
|
|
1199
1199
|
status,
|
|
1200
1200
|
editableSection
|
|
1201
1201
|
}));
|
|
@@ -1224,7 +1224,7 @@ function template(program) {
|
|
|
1224
1224
|
//#endregion
|
|
1225
1225
|
//#region package.json
|
|
1226
1226
|
var name = "alex-c-line";
|
|
1227
|
-
var version$1 = "2.0.
|
|
1227
|
+
var version$1 = "2.0.3";
|
|
1228
1228
|
var description = "Command-line tool with commands to streamline the developer workflow.";
|
|
1229
1229
|
//#endregion
|
|
1230
1230
|
//#region src/utility/updates/checkUpdate.ts
|
package/dist/index.js
CHANGED
|
@@ -796,7 +796,7 @@ function root(program) {
|
|
|
796
796
|
});
|
|
797
797
|
}
|
|
798
798
|
//#endregion
|
|
799
|
-
//#region src/utility/markdownTemplates/pullRequest/
|
|
799
|
+
//#region src/utility/markdownTemplates/pullRequest/createPullRequestTemplatesFromTemplates.ts
|
|
800
800
|
const __filename$1 = fileURLToPath(import.meta.url);
|
|
801
801
|
function getTemplateVariables$1(config) {
|
|
802
802
|
if (config.category === "general") return {
|
|
@@ -809,7 +809,7 @@ function getTemplateVariables$1(config) {
|
|
|
809
809
|
requireConfirmationFrom: config.requireConfirmationFrom
|
|
810
810
|
};
|
|
811
811
|
}
|
|
812
|
-
async function
|
|
812
|
+
async function createPullRequestTemplatesFromTemplates(config) {
|
|
813
813
|
const templateVariables = getTemplateVariables$1(config);
|
|
814
814
|
const { category } = config;
|
|
815
815
|
const templatesPath = path.join(await findPackageRoot(path.dirname(__filename$1), "alex-c-line"), "templates", "pullRequest");
|
|
@@ -853,7 +853,7 @@ function templatePullRequestCreate(program) {
|
|
|
853
853
|
}));
|
|
854
854
|
const gitHubPath = path.join(process.cwd(), ".github");
|
|
855
855
|
const pullRequestTemplatePath = path.join(gitHubPath, "PULL_REQUEST_TEMPLATE");
|
|
856
|
-
const allTemplates = await
|
|
856
|
+
const allTemplates = await createPullRequestTemplatesFromTemplates({
|
|
857
857
|
...parsedOptions,
|
|
858
858
|
projectName
|
|
859
859
|
});
|
|
@@ -894,17 +894,6 @@ function parseReleaseStatus(data) {
|
|
|
894
894
|
return ReleaseStatus[normalisedStringifiedData];
|
|
895
895
|
}
|
|
896
896
|
//#endregion
|
|
897
|
-
//#region src/utility/markdownTemplates/createMarkdownComment.ts
|
|
898
|
-
function createMarkdownComment(comment) {
|
|
899
|
-
if (comment.startsWith("<!--") && comment.endsWith("-->")) return comment;
|
|
900
|
-
return `<!-- ${comment} -->`;
|
|
901
|
-
}
|
|
902
|
-
//#endregion
|
|
903
|
-
//#region src/utility/markdownTemplates/createMarkdownCommentPair.ts
|
|
904
|
-
function createMarkdownCommentPair(comment) {
|
|
905
|
-
return [createMarkdownComment(`${comment}-start`), createMarkdownComment(`${comment}-end`)];
|
|
906
|
-
}
|
|
907
|
-
//#endregion
|
|
908
897
|
//#region src/utility/markdownTemplates/getMarkdownBlock.ts
|
|
909
898
|
function getMarkdownBlock(content, startMarker, endMarker) {
|
|
910
899
|
const startIndex = content.indexOf(startMarker);
|
|
@@ -913,6 +902,17 @@ function getMarkdownBlock(content, startMarker, endMarker) {
|
|
|
913
902
|
return content.slice(startIndex + startMarker.length, endIndex).trim();
|
|
914
903
|
}
|
|
915
904
|
//#endregion
|
|
905
|
+
//#region src/utility/markdownTemplates/getMarkdownComment.ts
|
|
906
|
+
function createMarkdownComment(comment) {
|
|
907
|
+
if (comment.startsWith("<!--") && comment.endsWith("-->")) return comment;
|
|
908
|
+
return `<!-- ${comment} -->`;
|
|
909
|
+
}
|
|
910
|
+
//#endregion
|
|
911
|
+
//#region src/utility/markdownTemplates/getMarkdownCommentPair.ts
|
|
912
|
+
function getMarkdownCommentPair(comment) {
|
|
913
|
+
return [createMarkdownComment(`${comment}-start`), createMarkdownComment(`${comment}-end`)];
|
|
914
|
+
}
|
|
915
|
+
//#endregion
|
|
916
916
|
//#region src/utility/markdownTemplates/normaliseMarkdown.ts
|
|
917
917
|
function normaliseMarkdown(markdownString) {
|
|
918
918
|
return markdownString.replace(/\r\n/g, "\n").split("\n").map((line) => {
|
|
@@ -922,7 +922,7 @@ function normaliseMarkdown(markdownString) {
|
|
|
922
922
|
//#endregion
|
|
923
923
|
//#region src/utility/markdownTemplates/releaseNote/getReleaseStatus.ts
|
|
924
924
|
function getReleaseStatus(content) {
|
|
925
|
-
const releaseStatus = getMarkdownBlock(content, ...
|
|
925
|
+
const releaseStatus = getMarkdownBlock(content, ...getMarkdownCommentPair("alex-c-line-release-status"));
|
|
926
926
|
if (releaseStatus === null) throw new DataError({ releaseStatus }, "RELEASE_STATUS_NOT_FOUND", "Could not find release status in document.");
|
|
927
927
|
return parseZodSchema(z.enum(ReleaseStatus), normaliseMarkdown(releaseStatus.split(":")[1]));
|
|
928
928
|
}
|
|
@@ -945,7 +945,7 @@ async function validateReleaseDocument(projectName, version, content, allowedRel
|
|
|
945
945
|
Expected: ${allowedReleaseStatuses.length === 1 ? `"${allowedReleaseStatus}"` : `one of: ${allowedReleaseStatuses.map((status) => {
|
|
946
946
|
return `"${status}"`;
|
|
947
947
|
}).join(", ")}`}`);
|
|
948
|
-
const releaseSummaryHeaders =
|
|
948
|
+
const releaseSummaryHeaders = getMarkdownCommentPair("alex-c-line-release-summary");
|
|
949
949
|
const summary = getMarkdownBlock(content, ...releaseSummaryHeaders);
|
|
950
950
|
const templateContent = await readFile(path.join(await findPackageRoot(path.dirname(__filename), "alex-c-line"), "templates", "releases", `${version.type}.md`), "utf-8");
|
|
951
951
|
const templateSummary = getMarkdownBlock(templateContent, ...releaseSummaryHeaders)?.replaceAll(`{{projectName}}`, projectName);
|
|
@@ -984,11 +984,6 @@ function templateReleaseNoteCheck(program) {
|
|
|
984
984
|
});
|
|
985
985
|
}
|
|
986
986
|
//#endregion
|
|
987
|
-
//#region src/utility/markdownTemplates/releaseNote/getReleaseNotePath.ts
|
|
988
|
-
function getReleaseNotePath(versionNumber) {
|
|
989
|
-
return path.join("docs", "releases", versionNumber.format({ omitMinor: true }), versionNumber.format({ omitPatch: true }), `${versionNumber}.md`);
|
|
990
|
-
}
|
|
991
|
-
//#endregion
|
|
992
987
|
//#region src/utility/markdownTemplates/getReleaseNoteTemplatesPath.ts
|
|
993
988
|
async function getReleaseNoteTemplatesPath() {
|
|
994
989
|
return path.join(await ALEX_C_LINE_PACKAGE_ROOT, "templates", "releases");
|
|
@@ -1012,7 +1007,7 @@ function replaceMarkdownPlaceholders(rawContent, templateVariables) {
|
|
|
1012
1007
|
return finalContent;
|
|
1013
1008
|
}
|
|
1014
1009
|
//#endregion
|
|
1015
|
-
//#region src/utility/markdownTemplates/releaseNote/
|
|
1010
|
+
//#region src/utility/markdownTemplates/releaseNote/createReleaseNoteFromTemplates.ts
|
|
1016
1011
|
async function getTemplateVariables(projectName, version, templateVariables) {
|
|
1017
1012
|
if ("editableSection" in templateVariables && templateVariables.editableSection) {
|
|
1018
1013
|
const { status = "In progress", editableSection } = templateVariables;
|
|
@@ -1036,12 +1031,17 @@ async function getTemplateVariables(projectName, version, templateVariables) {
|
|
|
1036
1031
|
editableSection
|
|
1037
1032
|
};
|
|
1038
1033
|
}
|
|
1039
|
-
async function
|
|
1034
|
+
async function createReleaseNoteFromTemplates(projectName, version, metadata) {
|
|
1040
1035
|
const templateVariables = await getTemplateVariables(projectName, version, metadata);
|
|
1041
1036
|
const templatesPath = path.join(await ALEX_C_LINE_PACKAGE_ROOT, "templates", "releases");
|
|
1042
1037
|
return replaceMarkdownPlaceholders(await readFile(path.join(templatesPath, `${version.type}.md`), "utf-8"), templateVariables);
|
|
1043
1038
|
}
|
|
1044
1039
|
//#endregion
|
|
1040
|
+
//#region src/utility/markdownTemplates/releaseNote/getReleaseNotePath.ts
|
|
1041
|
+
function getReleaseNotePath(versionNumber) {
|
|
1042
|
+
return path.join("docs", "releases", versionNumber.format({ omitMinor: true }), versionNumber.format({ omitPatch: true }), `${versionNumber}.md`);
|
|
1043
|
+
}
|
|
1044
|
+
//#endregion
|
|
1045
1045
|
//#region src/cli/commands/template/releaseNote/create.ts
|
|
1046
1046
|
function templateReleaseNoteCreate(program) {
|
|
1047
1047
|
program.command("create").argument("[createFor]", normaliseIndents`
|
|
@@ -1063,7 +1063,7 @@ function templateReleaseNoteCreate(program) {
|
|
|
1063
1063
|
}), packageInfo);
|
|
1064
1064
|
const versionNumber = target instanceof VersionNumber ? target : target ? new VersionNumber(packageVersion).increment(target) : new VersionNumber(packageVersion);
|
|
1065
1065
|
const releaseNotePath = getReleaseNotePath(versionNumber);
|
|
1066
|
-
const releaseNoteTemplate = await
|
|
1066
|
+
const releaseNoteTemplate = await createReleaseNoteFromTemplates(name, versionNumber, { status: "In progress" });
|
|
1067
1067
|
try {
|
|
1068
1068
|
await mkdir(path.dirname(releaseNotePath), { recursive: true });
|
|
1069
1069
|
await writeFile(releaseNotePath, releaseNoteTemplate, { flag: "wx" });
|
|
@@ -1159,13 +1159,13 @@ function templateReleaseNoteSetStatus(program) {
|
|
|
1159
1159
|
const fullDocumentPath = path.join(process.cwd(), documentPath);
|
|
1160
1160
|
const initialDocument = await readFile(fullDocumentPath, "utf-8");
|
|
1161
1161
|
await validateReleaseDocument(name, versionNumber, initialDocument);
|
|
1162
|
-
const [userEditableSectionStart, userEditableSectionEnd] =
|
|
1162
|
+
const [userEditableSectionStart, userEditableSectionEnd] = getMarkdownCommentPair("user-editable-section");
|
|
1163
1163
|
const editableSection = getMarkdownBlock(initialDocument, userEditableSectionStart, userEditableSectionEnd);
|
|
1164
1164
|
if (editableSection === null) throw new DataError({
|
|
1165
1165
|
startMarker: userEditableSectionStart,
|
|
1166
1166
|
endMarker: userEditableSectionEnd
|
|
1167
1167
|
}, "EDITABLE_SECTION_NOT_FOUND", "Could not find editable section in the provided document.");
|
|
1168
|
-
await writeFile(fullDocumentPath, await
|
|
1168
|
+
await writeFile(fullDocumentPath, await createReleaseNoteFromTemplates(name, versionNumber, {
|
|
1169
1169
|
status,
|
|
1170
1170
|
editableSection
|
|
1171
1171
|
}));
|
|
@@ -1194,7 +1194,7 @@ function template(program) {
|
|
|
1194
1194
|
//#endregion
|
|
1195
1195
|
//#region package.json
|
|
1196
1196
|
var name = "alex-c-line";
|
|
1197
|
-
var version$1 = "2.0.
|
|
1197
|
+
var version$1 = "2.0.3";
|
|
1198
1198
|
var description = "Command-line tool with commands to streamline the developer workflow.";
|
|
1199
1199
|
//#endregion
|
|
1200
1200
|
//#region src/utility/updates/checkUpdate.ts
|
package/package.json
CHANGED
|
@@ -5,7 +5,6 @@ placeholders:
|
|
|
5
5
|
- projectName
|
|
6
6
|
- infrastructureProvider
|
|
7
7
|
---
|
|
8
|
-
|
|
9
8
|
# Irreversible Destruction
|
|
10
9
|
|
|
11
10
|
This is a change to `{{projectName}}` that irreversibly destroys a managed {{infrastructureProvider}} resource. This change can **NOT** be fixed by simply reverting back the changes as it will try recreating the resource entirely and there is no guarantee that it will be restored back to the same state it was previously in.
|
|
@@ -6,7 +6,6 @@ placeholders:
|
|
|
6
6
|
- infrastructureProvider
|
|
7
7
|
- requireConfirmationFrom
|
|
8
8
|
---
|
|
9
|
-
|
|
10
9
|
# Manual Change
|
|
11
10
|
|
|
12
11
|
This is a change to `{{projectName}}` that requires manual changes to the managed {{infrastructureProvider}} resources. {{requireConfirmationFrom}} **MUST** confirm by approval (or authorship of pull request) that these changes have been made before this can be merged in.
|
|
@@ -5,7 +5,6 @@ placeholders:
|
|
|
5
5
|
- projectName
|
|
6
6
|
- infrastructureProvider
|
|
7
7
|
---
|
|
8
|
-
|
|
9
8
|
# Resource Update
|
|
10
9
|
|
|
11
10
|
This is a change to an existing resource in `{{projectName}}` in the {{infrastructureProvider}} plan. It changes the currently managed state without removing or adding anything else to the plan.
|