alex-c-line 2.0.1 → 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/configs/index.cjs +16 -35
- package/dist/configs/index.js +4 -18
- package/dist/configs/internal/index.cjs +2 -7
- package/dist/configs/internal/index.d.ts +0 -1
- package/dist/configs/internal/index.js +1 -5
- package/dist/index.cjs +39 -146
- package/dist/index.js +33 -135
- package/package.json +5 -5
- 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/configs/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value:
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
//#region \0rolldown/runtime.js
|
|
3
3
|
var __create = Object.create;
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -7,16 +7,12 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
9
|
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
}
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
+
key = keys[i];
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
13
|
+
get: ((k) => from[k]).bind(null, key),
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
20
16
|
}
|
|
21
17
|
return to;
|
|
22
18
|
};
|
|
@@ -24,13 +20,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
20
|
value: mod,
|
|
25
21
|
enumerable: true
|
|
26
22
|
}) : target, mod));
|
|
27
|
-
|
|
28
23
|
//#endregion
|
|
29
24
|
require("@alextheman/utility");
|
|
30
25
|
let zod = require("zod");
|
|
31
26
|
zod = __toESM(zod);
|
|
32
27
|
let _alextheman_utility_internal = require("@alextheman/utility/internal");
|
|
33
|
-
|
|
34
28
|
//#region src/configs/helpers/preCommit/definePreCommitConfig.ts
|
|
35
29
|
const preCommitStepOptionsSchema = zod.default.strictObject({ arguments: zod.default.array(zod.default.string()).optional() });
|
|
36
30
|
const preCommitConfigSchema = zod.default.strictObject({
|
|
@@ -49,7 +43,6 @@ const preCommitConfigSchema = zod.default.strictObject({
|
|
|
49
43
|
function definePreCommitConfig(config) {
|
|
50
44
|
return config;
|
|
51
45
|
}
|
|
52
|
-
|
|
53
46
|
//#endregion
|
|
54
47
|
//#region src/configs/helpers/template/pullRequest/defineTemplatePullRequestSchema.ts
|
|
55
48
|
const templatePullRequestBaseSchema = zod.default.strictObject({ projectName: zod.default.string().optional() });
|
|
@@ -64,17 +57,13 @@ const templatePullRequestSchema = zod.default.discriminatedUnion("category", [te
|
|
|
64
57
|
function defineCreatePullRequestTemplateConfig(config) {
|
|
65
58
|
return config;
|
|
66
59
|
}
|
|
67
|
-
|
|
68
|
-
//#endregion
|
|
69
|
-
//#region src/configs/helpers/defineAlexCLineConfig.ts
|
|
70
|
-
const alexCLineConfigSchema = zod.default.strictObject({
|
|
60
|
+
zod.default.strictObject({
|
|
71
61
|
preCommit: preCommitConfigSchema,
|
|
72
62
|
template: zod.default.object({ pullRequest: templatePullRequestSchema })
|
|
73
63
|
}).partial();
|
|
74
64
|
function defineAlexCLineConfig(config) {
|
|
75
65
|
return config;
|
|
76
66
|
}
|
|
77
|
-
|
|
78
67
|
//#endregion
|
|
79
68
|
//#region src/configs/types/ConfigFileName.ts
|
|
80
69
|
const ConfigFileName = {
|
|
@@ -82,17 +71,13 @@ const ConfigFileName = {
|
|
|
82
71
|
ES_MODULES_JAVASCRIPT: "alex-c-line.config.mjs",
|
|
83
72
|
COMMON_JS_JAVASCRIPT: "alex-c-line.config.cjs"
|
|
84
73
|
};
|
|
85
|
-
|
|
86
74
|
//#endregion
|
|
87
75
|
//#region src/configs/types/template/pullRequest/PullRequestTemplateCategory.ts
|
|
88
76
|
const PullRequestTemplateCategory = {
|
|
89
77
|
GENERAL: "general",
|
|
90
78
|
INFRASTRUCTURE: "infrastructure"
|
|
91
79
|
};
|
|
92
|
-
|
|
93
|
-
//#endregion
|
|
94
|
-
//#region src/configs/helpers/defineAlexCLinePrivateConfig.ts
|
|
95
|
-
const alexCLinePrivateConfigSchema = zod.default.object({ localPackage: zod.default.strictObject({
|
|
80
|
+
zod.default.object({ localPackage: zod.default.strictObject({
|
|
96
81
|
enableCache: zod.default.boolean().optional(),
|
|
97
82
|
localPackages: zod.default.record(zod.default.string(), zod.default.strictObject({
|
|
98
83
|
packageManager: zod.default.enum(_alextheman_utility_internal.PackageManager),
|
|
@@ -105,25 +90,21 @@ const alexCLinePrivateConfigSchema = zod.default.object({ localPackage: zod.defa
|
|
|
105
90
|
function defineAlexCLinePrivateConfig(config) {
|
|
106
91
|
return config;
|
|
107
92
|
}
|
|
108
|
-
|
|
109
|
-
//#endregion
|
|
110
|
-
//#region src/configs/helpers/preCommit/definePreCommitPrivateConfig.ts
|
|
111
|
-
const preCommitPrivateConfigSchema = zod.default.strictObject({ disableSteps: zod.default.array(zod.default.string()).optional() });
|
|
93
|
+
zod.default.strictObject({ disableSteps: zod.default.array(zod.default.string()).optional() });
|
|
112
94
|
function definePreCommitPrivateConfig(config) {
|
|
113
95
|
return config;
|
|
114
96
|
}
|
|
115
|
-
|
|
116
97
|
//#endregion
|
|
117
98
|
exports.ConfigFileName = ConfigFileName;
|
|
118
|
-
Object.defineProperty(exports,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
99
|
+
Object.defineProperty(exports, "DependencyGroup", {
|
|
100
|
+
enumerable: true,
|
|
101
|
+
get: function() {
|
|
102
|
+
return _alextheman_utility_internal.DependencyGroup;
|
|
103
|
+
}
|
|
123
104
|
});
|
|
124
105
|
exports.PullRequestTemplateCategory = PullRequestTemplateCategory;
|
|
125
106
|
exports.defineAlexCLineConfig = defineAlexCLineConfig;
|
|
126
107
|
exports.defineAlexCLinePrivateConfig = defineAlexCLinePrivateConfig;
|
|
127
108
|
exports.defineCreatePullRequestTemplateConfig = defineCreatePullRequestTemplateConfig;
|
|
128
109
|
exports.definePreCommitConfig = definePreCommitConfig;
|
|
129
|
-
exports.definePreCommitPrivateConfig = definePreCommitPrivateConfig;
|
|
110
|
+
exports.definePreCommitPrivateConfig = definePreCommitPrivateConfig;
|
package/dist/configs/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import "@alextheman/utility";
|
|
2
2
|
import z from "zod";
|
|
3
3
|
import { DependencyGroup, PackageManager } from "@alextheman/utility/internal";
|
|
4
|
-
|
|
5
4
|
//#region src/configs/helpers/preCommit/definePreCommitConfig.ts
|
|
6
5
|
const preCommitStepOptionsSchema = z.strictObject({ arguments: z.array(z.string()).optional() });
|
|
7
6
|
const preCommitConfigSchema = z.strictObject({
|
|
@@ -20,7 +19,6 @@ const preCommitConfigSchema = z.strictObject({
|
|
|
20
19
|
function definePreCommitConfig(config) {
|
|
21
20
|
return config;
|
|
22
21
|
}
|
|
23
|
-
|
|
24
22
|
//#endregion
|
|
25
23
|
//#region src/configs/helpers/template/pullRequest/defineTemplatePullRequestSchema.ts
|
|
26
24
|
const templatePullRequestBaseSchema = z.strictObject({ projectName: z.string().optional() });
|
|
@@ -35,17 +33,13 @@ const templatePullRequestSchema = z.discriminatedUnion("category", [templatePull
|
|
|
35
33
|
function defineCreatePullRequestTemplateConfig(config) {
|
|
36
34
|
return config;
|
|
37
35
|
}
|
|
38
|
-
|
|
39
|
-
//#endregion
|
|
40
|
-
//#region src/configs/helpers/defineAlexCLineConfig.ts
|
|
41
|
-
const alexCLineConfigSchema = z.strictObject({
|
|
36
|
+
z.strictObject({
|
|
42
37
|
preCommit: preCommitConfigSchema,
|
|
43
38
|
template: z.object({ pullRequest: templatePullRequestSchema })
|
|
44
39
|
}).partial();
|
|
45
40
|
function defineAlexCLineConfig(config) {
|
|
46
41
|
return config;
|
|
47
42
|
}
|
|
48
|
-
|
|
49
43
|
//#endregion
|
|
50
44
|
//#region src/configs/types/ConfigFileName.ts
|
|
51
45
|
const ConfigFileName = {
|
|
@@ -53,17 +47,13 @@ const ConfigFileName = {
|
|
|
53
47
|
ES_MODULES_JAVASCRIPT: "alex-c-line.config.mjs",
|
|
54
48
|
COMMON_JS_JAVASCRIPT: "alex-c-line.config.cjs"
|
|
55
49
|
};
|
|
56
|
-
|
|
57
50
|
//#endregion
|
|
58
51
|
//#region src/configs/types/template/pullRequest/PullRequestTemplateCategory.ts
|
|
59
52
|
const PullRequestTemplateCategory = {
|
|
60
53
|
GENERAL: "general",
|
|
61
54
|
INFRASTRUCTURE: "infrastructure"
|
|
62
55
|
};
|
|
63
|
-
|
|
64
|
-
//#endregion
|
|
65
|
-
//#region src/configs/helpers/defineAlexCLinePrivateConfig.ts
|
|
66
|
-
const alexCLinePrivateConfigSchema = z.object({ localPackage: z.strictObject({
|
|
56
|
+
z.object({ localPackage: z.strictObject({
|
|
67
57
|
enableCache: z.boolean().optional(),
|
|
68
58
|
localPackages: z.record(z.string(), z.strictObject({
|
|
69
59
|
packageManager: z.enum(PackageManager),
|
|
@@ -76,13 +66,9 @@ const alexCLinePrivateConfigSchema = z.object({ localPackage: z.strictObject({
|
|
|
76
66
|
function defineAlexCLinePrivateConfig(config) {
|
|
77
67
|
return config;
|
|
78
68
|
}
|
|
79
|
-
|
|
80
|
-
//#endregion
|
|
81
|
-
//#region src/configs/helpers/preCommit/definePreCommitPrivateConfig.ts
|
|
82
|
-
const preCommitPrivateConfigSchema = z.strictObject({ disableSteps: z.array(z.string()).optional() });
|
|
69
|
+
z.strictObject({ disableSteps: z.array(z.string()).optional() });
|
|
83
70
|
function definePreCommitPrivateConfig(config) {
|
|
84
71
|
return config;
|
|
85
72
|
}
|
|
86
|
-
|
|
87
73
|
//#endregion
|
|
88
|
-
export { ConfigFileName, DependencyGroup, PullRequestTemplateCategory, defineAlexCLineConfig, defineAlexCLinePrivateConfig, defineCreatePullRequestTemplateConfig, definePreCommitConfig, definePreCommitPrivateConfig };
|
|
74
|
+
export { ConfigFileName, DependencyGroup, PullRequestTemplateCategory, defineAlexCLineConfig, defineAlexCLinePrivateConfig, defineCreatePullRequestTemplateConfig, definePreCommitConfig, definePreCommitPrivateConfig };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value:
|
|
2
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
2
|
//#region src/configs/internal/alexCLineConfig.ts
|
|
4
3
|
const alexCLineConfig = {
|
|
5
4
|
preCommit: {
|
|
@@ -16,7 +15,6 @@ const alexCLineConfig = {
|
|
|
16
15
|
projectType: "package"
|
|
17
16
|
} }
|
|
18
17
|
};
|
|
19
|
-
|
|
20
18
|
//#endregion
|
|
21
19
|
//#region src/configs/internal/infrastructureConfig.ts
|
|
22
20
|
const infrastructureConfig = {
|
|
@@ -36,7 +34,6 @@ const infrastructureConfig = {
|
|
|
36
34
|
requireConfirmationFrom: "AlexMan123456"
|
|
37
35
|
} }
|
|
38
36
|
};
|
|
39
|
-
|
|
40
37
|
//#endregion
|
|
41
38
|
//#region src/configs/internal/packageConfig.ts
|
|
42
39
|
function packageConfig(steps = [
|
|
@@ -56,7 +53,6 @@ function packageConfig(steps = [
|
|
|
56
53
|
} }
|
|
57
54
|
};
|
|
58
55
|
}
|
|
59
|
-
|
|
60
56
|
//#endregion
|
|
61
57
|
//#region src/configs/internal/testConfig.ts
|
|
62
58
|
const testConfig = {
|
|
@@ -70,9 +66,8 @@ const testConfig = {
|
|
|
70
66
|
projectType: "package"
|
|
71
67
|
} }
|
|
72
68
|
};
|
|
73
|
-
|
|
74
69
|
//#endregion
|
|
75
70
|
exports.alexCLineConfig = alexCLineConfig;
|
|
76
71
|
exports.infrastructureConfig = infrastructureConfig;
|
|
77
72
|
exports.packageConfig = packageConfig;
|
|
78
|
-
exports.testConfig = testConfig;
|
|
73
|
+
exports.testConfig = testConfig;
|
|
@@ -14,7 +14,6 @@ const alexCLineConfig = {
|
|
|
14
14
|
projectType: "package"
|
|
15
15
|
} }
|
|
16
16
|
};
|
|
17
|
-
|
|
18
17
|
//#endregion
|
|
19
18
|
//#region src/configs/internal/infrastructureConfig.ts
|
|
20
19
|
const infrastructureConfig = {
|
|
@@ -34,7 +33,6 @@ const infrastructureConfig = {
|
|
|
34
33
|
requireConfirmationFrom: "AlexMan123456"
|
|
35
34
|
} }
|
|
36
35
|
};
|
|
37
|
-
|
|
38
36
|
//#endregion
|
|
39
37
|
//#region src/configs/internal/packageConfig.ts
|
|
40
38
|
function packageConfig(steps = [
|
|
@@ -54,7 +52,6 @@ function packageConfig(steps = [
|
|
|
54
52
|
} }
|
|
55
53
|
};
|
|
56
54
|
}
|
|
57
|
-
|
|
58
55
|
//#endregion
|
|
59
56
|
//#region src/configs/internal/testConfig.ts
|
|
60
57
|
const testConfig = {
|
|
@@ -68,6 +65,5 @@ const testConfig = {
|
|
|
68
65
|
projectType: "package"
|
|
69
66
|
} }
|
|
70
67
|
};
|
|
71
|
-
|
|
72
68
|
//#endregion
|
|
73
|
-
export { alexCLineConfig, infrastructureConfig, packageConfig, testConfig };
|
|
69
|
+
export { alexCLineConfig, infrastructureConfig, packageConfig, testConfig };
|