alex-c-line 2.7.2 → 2.8.0
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/configs/index.d.cts +1 -1
- package/dist/configs/index.d.ts +1 -1
- package/dist/index.cjs +7 -4
- package/dist/index.js +7 -4
- package/package.json +14 -14
package/dist/configs/index.d.cts
CHANGED
|
@@ -120,4 +120,4 @@ type PullRequestTemplateCategory = CreateEnumType<typeof PullRequestTemplateCate
|
|
|
120
120
|
//#region src/configs/helpers/template/pullRequest/defineTemplatePullRequestSchema.d.ts
|
|
121
121
|
declare function defineCreatePullRequestTemplateConfig(config: TemplatePullRequestConfig): TemplatePullRequestConfig;
|
|
122
122
|
//#endregion
|
|
123
|
-
export { AlexCLineConfig, ConfigFileName, DependencyGroup, PreCommitConfig, PreCommitPrivateConfig, PreCommitStepOptions, PullRequestTemplateCategory, StepFunction, TemplatePullRequestBaseConfig, TemplatePullRequestConfig, TemplatePullRequestGeneralConfig, TemplatePullRequestInfrastructureConfig, defineAlexCLineConfig, defineAlexCLinePrivateConfig, defineCreatePullRequestTemplateConfig, definePreCommitConfig, definePreCommitPrivateConfig };
|
|
123
|
+
export { type AlexCLineConfig, ConfigFileName, DependencyGroup, type PreCommitConfig, type PreCommitPrivateConfig, type PreCommitStepOptions, PullRequestTemplateCategory, type StepFunction, type TemplatePullRequestBaseConfig, type TemplatePullRequestConfig, type TemplatePullRequestGeneralConfig, type TemplatePullRequestInfrastructureConfig, defineAlexCLineConfig, defineAlexCLinePrivateConfig, defineCreatePullRequestTemplateConfig, definePreCommitConfig, definePreCommitPrivateConfig };
|
package/dist/configs/index.d.ts
CHANGED
|
@@ -121,4 +121,4 @@ type PullRequestTemplateCategory = CreateEnumType<typeof PullRequestTemplateCate
|
|
|
121
121
|
//#region src/configs/helpers/template/pullRequest/defineTemplatePullRequestSchema.d.ts
|
|
122
122
|
declare function defineCreatePullRequestTemplateConfig(config: TemplatePullRequestConfig): TemplatePullRequestConfig;
|
|
123
123
|
//#endregion
|
|
124
|
-
export { AlexCLineConfig, ConfigFileName, DependencyGroup, PreCommitConfig, PreCommitPrivateConfig, PreCommitStepOptions, PullRequestTemplateCategory, StepFunction, TemplatePullRequestBaseConfig, TemplatePullRequestConfig, TemplatePullRequestGeneralConfig, TemplatePullRequestInfrastructureConfig, defineAlexCLineConfig, defineAlexCLinePrivateConfig, defineCreatePullRequestTemplateConfig, definePreCommitConfig, definePreCommitPrivateConfig };
|
|
124
|
+
export { type AlexCLineConfig, ConfigFileName, DependencyGroup, type PreCommitConfig, type PreCommitPrivateConfig, type PreCommitStepOptions, PullRequestTemplateCategory, type StepFunction, type TemplatePullRequestBaseConfig, type TemplatePullRequestConfig, type TemplatePullRequestGeneralConfig, type TemplatePullRequestInfrastructureConfig, defineAlexCLineConfig, defineAlexCLinePrivateConfig, defineCreatePullRequestTemplateConfig, definePreCommitConfig, definePreCommitPrivateConfig };
|
package/dist/index.cjs
CHANGED
|
@@ -1121,7 +1121,7 @@ function templateReleaseNoteCreate(program) {
|
|
|
1121
1121
|
if (_alextheman_utility_v6.DataError.check(error) && error.code === "INVALID_VERSION") return (0, _alextheman_utility.parseVersionType)(rawValue);
|
|
1122
1122
|
throw error;
|
|
1123
1123
|
}
|
|
1124
|
-
}).description("Create release notes based on the current version in package.json.").action(async (target) => {
|
|
1124
|
+
}).option("--content <content>", "Set the content of the release note").description("Create release notes based on the current version in package.json.").action(async (target, { content }) => {
|
|
1125
1125
|
const packageInfo = await (0, _alextheman_utility_internal.getPackageJsonContents)(process.cwd());
|
|
1126
1126
|
const { name, version: packageVersion } = _alextheman_utility.az.with(zod.default.object({
|
|
1127
1127
|
name: zod.default.string(),
|
|
@@ -1129,7 +1129,10 @@ function templateReleaseNoteCreate(program) {
|
|
|
1129
1129
|
})).parse(packageInfo);
|
|
1130
1130
|
const versionNumber = target instanceof _alextheman_utility.VersionNumber ? target : target ? new _alextheman_utility.VersionNumber(packageVersion).increment(target) : new _alextheman_utility.VersionNumber(packageVersion);
|
|
1131
1131
|
const releaseNotePath = getReleaseNotePath(versionNumber);
|
|
1132
|
-
const releaseNoteTemplate = await createReleaseNoteFromTemplates(name, versionNumber, {
|
|
1132
|
+
const releaseNoteTemplate = await createReleaseNoteFromTemplates(name, versionNumber, {
|
|
1133
|
+
status: "In progress",
|
|
1134
|
+
editableSection: content
|
|
1135
|
+
});
|
|
1133
1136
|
try {
|
|
1134
1137
|
await (0, node_fs_promises.mkdir)(node_path.default.dirname(releaseNotePath), { recursive: true });
|
|
1135
1138
|
await (0, node_fs_promises.writeFile)(releaseNotePath, releaseNoteTemplate, { flag: "wx" });
|
|
@@ -1204,7 +1207,7 @@ function template(program) {
|
|
|
1204
1207
|
//#endregion
|
|
1205
1208
|
//#region package.json
|
|
1206
1209
|
var name = "alex-c-line";
|
|
1207
|
-
var version$1 = "2.
|
|
1210
|
+
var version$1 = "2.8.0";
|
|
1208
1211
|
var description = "Command-line tool with commands to streamline the developer workflow.";
|
|
1209
1212
|
//#endregion
|
|
1210
1213
|
//#region src/utility/updates/checkUpdate.ts
|
|
@@ -1436,7 +1439,7 @@ function formatError(error) {
|
|
|
1436
1439
|
exitCode: error.exitCode,
|
|
1437
1440
|
stderr: error.stderr,
|
|
1438
1441
|
stdout: error.stdout
|
|
1439
|
-
}, error.code, error.message);
|
|
1442
|
+
}, error.code ?? "COMMAND_ERROR", error.message);
|
|
1440
1443
|
if (typeof error.stack === "string") {
|
|
1441
1444
|
const execaLines = error.stack.split("\n");
|
|
1442
1445
|
execaLines[0] = `${dataError.name}: ${dataError.message}`;
|
package/dist/index.js
CHANGED
|
@@ -1090,7 +1090,7 @@ function templateReleaseNoteCreate(program) {
|
|
|
1090
1090
|
if (DataError.check(error) && error.code === "INVALID_VERSION") return parseVersionType(rawValue);
|
|
1091
1091
|
throw error;
|
|
1092
1092
|
}
|
|
1093
|
-
}).description("Create release notes based on the current version in package.json.").action(async (target) => {
|
|
1093
|
+
}).option("--content <content>", "Set the content of the release note").description("Create release notes based on the current version in package.json.").action(async (target, { content }) => {
|
|
1094
1094
|
const packageInfo = await getPackageJsonContents(process.cwd());
|
|
1095
1095
|
const { name, version: packageVersion } = az.with(z.object({
|
|
1096
1096
|
name: z.string(),
|
|
@@ -1098,7 +1098,10 @@ function templateReleaseNoteCreate(program) {
|
|
|
1098
1098
|
})).parse(packageInfo);
|
|
1099
1099
|
const versionNumber = target instanceof VersionNumber ? target : target ? new VersionNumber(packageVersion).increment(target) : new VersionNumber(packageVersion);
|
|
1100
1100
|
const releaseNotePath = getReleaseNotePath(versionNumber);
|
|
1101
|
-
const releaseNoteTemplate = await createReleaseNoteFromTemplates(name, versionNumber, {
|
|
1101
|
+
const releaseNoteTemplate = await createReleaseNoteFromTemplates(name, versionNumber, {
|
|
1102
|
+
status: "In progress",
|
|
1103
|
+
editableSection: content
|
|
1104
|
+
});
|
|
1102
1105
|
try {
|
|
1103
1106
|
await mkdir(path.dirname(releaseNotePath), { recursive: true });
|
|
1104
1107
|
await writeFile(releaseNotePath, releaseNoteTemplate, { flag: "wx" });
|
|
@@ -1173,7 +1176,7 @@ function template(program) {
|
|
|
1173
1176
|
//#endregion
|
|
1174
1177
|
//#region package.json
|
|
1175
1178
|
var name = "alex-c-line";
|
|
1176
|
-
var version$1 = "2.
|
|
1179
|
+
var version$1 = "2.8.0";
|
|
1177
1180
|
var description = "Command-line tool with commands to streamline the developer workflow.";
|
|
1178
1181
|
//#endregion
|
|
1179
1182
|
//#region src/utility/updates/checkUpdate.ts
|
|
@@ -1405,7 +1408,7 @@ function formatError(error) {
|
|
|
1405
1408
|
exitCode: error.exitCode,
|
|
1406
1409
|
stderr: error.stderr,
|
|
1407
1410
|
stdout: error.stdout
|
|
1408
|
-
}, error.code, error.message);
|
|
1411
|
+
}, error.code ?? "COMMAND_ERROR", error.message);
|
|
1409
1412
|
if (typeof error.stack === "string") {
|
|
1410
1413
|
const execaLines = error.stack.split("\n");
|
|
1411
1414
|
execaLines[0] = `${dataError.name}: ${dataError.message}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alex-c-line",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"description": "Command-line tool with commands to streamline the developer workflow.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"templates"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@alextheman/utility": "5.
|
|
38
|
-
"@inquirer/prompts": "8.4.
|
|
39
|
-
"axios": "1.
|
|
37
|
+
"@alextheman/utility": "5.19.0",
|
|
38
|
+
"@inquirer/prompts": "8.4.3",
|
|
39
|
+
"axios": "1.16.1",
|
|
40
40
|
"boxen": "8.0.1",
|
|
41
41
|
"chalk": "5.6.2",
|
|
42
42
|
"commander": "14.0.3",
|
|
@@ -46,34 +46,34 @@
|
|
|
46
46
|
"execa": "9.6.1",
|
|
47
47
|
"figlet": "1.11.0",
|
|
48
48
|
"gray-matter": "4.0.3",
|
|
49
|
-
"semver": "7.
|
|
49
|
+
"semver": "7.8.1",
|
|
50
50
|
"supports-color": "10.2.2",
|
|
51
51
|
"toml": "4.1.1",
|
|
52
|
-
"zod": "4.3
|
|
52
|
+
"zod": "4.4.3"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@alextheman/eslint-plugin": "5.
|
|
55
|
+
"@alextheman/eslint-plugin": "5.15.0",
|
|
56
56
|
"@commander-js/extra-typings": "14.0.0",
|
|
57
57
|
"@types/eslint": "9.6.1",
|
|
58
|
-
"@types/node": "25.
|
|
58
|
+
"@types/node": "25.9.1",
|
|
59
59
|
"@types/semver": "7.7.1",
|
|
60
60
|
"@types/update-notifier": "6.0.8",
|
|
61
61
|
"cross-env": "10.1.0",
|
|
62
62
|
"dotenv-cli": "11.0.0",
|
|
63
|
-
"eslint": "10.
|
|
63
|
+
"eslint": "10.4.0",
|
|
64
64
|
"husky": "9.1.7",
|
|
65
65
|
"markdownlint-cli2": "0.22.1",
|
|
66
66
|
"prettier": "3.8.3",
|
|
67
67
|
"tempy": "3.2.0",
|
|
68
68
|
"ts-node": "10.9.2",
|
|
69
|
-
"tsdown": "0.
|
|
69
|
+
"tsdown": "0.22.0",
|
|
70
70
|
"typescript": "6.0.3",
|
|
71
|
-
"typescript-eslint": "8.59.
|
|
72
|
-
"vite": "8.0.
|
|
73
|
-
"vitest": "4.1.
|
|
71
|
+
"typescript-eslint": "8.59.4",
|
|
72
|
+
"vite": "8.0.14",
|
|
73
|
+
"vitest": "4.1.7"
|
|
74
74
|
},
|
|
75
75
|
"engines": {
|
|
76
|
-
"node": ">=22.
|
|
76
|
+
"node": ">=22.3.0"
|
|
77
77
|
},
|
|
78
78
|
"scripts": {
|
|
79
79
|
"build": "tsdown",
|