alex-c-line 2.5.0 → 2.6.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/internal/index.d.cts +2 -0
- package/dist/configs/internal/index.d.ts +2 -0
- package/dist/index.cjs +2 -17
- package/dist/index.js +2 -17
- package/package.json +15 -13
|
@@ -67,6 +67,7 @@ declare let scripts: {
|
|
|
67
67
|
"create-release-note": string;
|
|
68
68
|
format: string;
|
|
69
69
|
"format-eslint": string;
|
|
70
|
+
"format-markdownlint": string;
|
|
70
71
|
"format-prettier": string;
|
|
71
72
|
"format-prettier-html": string;
|
|
72
73
|
"format-prettier-javascript": string;
|
|
@@ -74,6 +75,7 @@ declare let scripts: {
|
|
|
74
75
|
"format-prettier-yml": string;
|
|
75
76
|
lint: string;
|
|
76
77
|
"lint-eslint": string;
|
|
78
|
+
"lint-markdownlint": string;
|
|
77
79
|
"lint-pre-release": string;
|
|
78
80
|
"lint-prettier": string;
|
|
79
81
|
"lint-prettier-html": string;
|
|
@@ -67,6 +67,7 @@ declare let scripts: {
|
|
|
67
67
|
"create-release-note": string;
|
|
68
68
|
format: string;
|
|
69
69
|
"format-eslint": string;
|
|
70
|
+
"format-markdownlint": string;
|
|
70
71
|
"format-prettier": string;
|
|
71
72
|
"format-prettier-html": string;
|
|
72
73
|
"format-prettier-javascript": string;
|
|
@@ -74,6 +75,7 @@ declare let scripts: {
|
|
|
74
75
|
"format-prettier-yml": string;
|
|
75
76
|
lint: string;
|
|
76
77
|
"lint-eslint": string;
|
|
78
|
+
"lint-markdownlint": string;
|
|
77
79
|
"lint-pre-release": string;
|
|
78
80
|
"lint-prettier": string;
|
|
79
81
|
"lint-prettier-html": string;
|
package/dist/index.cjs
CHANGED
|
@@ -42,9 +42,9 @@ let _alextheman_utility_internal = require("@alextheman/utility/internal");
|
|
|
42
42
|
let zod = require("zod");
|
|
43
43
|
zod = __toESM(zod);
|
|
44
44
|
let node_module = require("node:module");
|
|
45
|
-
let _alextheman_utility_node = require("@alextheman/utility/node");
|
|
46
45
|
let gray_matter = require("gray-matter");
|
|
47
46
|
gray_matter = __toESM(gray_matter);
|
|
47
|
+
let _alextheman_utility_node = require("@alextheman/utility/node");
|
|
48
48
|
let axios = require("axios");
|
|
49
49
|
axios = __toESM(axios);
|
|
50
50
|
let supports_color = require("supports-color");
|
|
@@ -716,20 +716,6 @@ function localPackage(program) {
|
|
|
716
716
|
loadCommands(program.command("local-package").description("Manage the use of local packages in your JavaScript project."), { localPackageUse });
|
|
717
717
|
}
|
|
718
718
|
//#endregion
|
|
719
|
-
//#region src/cli/commands/root/encrypt-with-key.ts
|
|
720
|
-
function encryptWithKey(program) {
|
|
721
|
-
program.command("encrypt-with-key").alias("encrypt").description("Encrypt a secret given the public base64 key and the thing you want to encrypt.").argument("<publicKey>", "The public base64 key to encrypt with").argument("<plaintextValue>", "The value to encrypt in plaintext").action(async (publicKey, plaintextValue) => {
|
|
722
|
-
try {
|
|
723
|
-
console.info(await (0, _alextheman_utility_node.encryptWithKey)(publicKey, plaintextValue));
|
|
724
|
-
} catch {
|
|
725
|
-
program.error(`${errorPrefix} Encryption failed. Please double-check that the given key is a valid base 64 string.`, {
|
|
726
|
-
exitCode: 1,
|
|
727
|
-
code: "ENCRYPTION_FAILED"
|
|
728
|
-
});
|
|
729
|
-
}
|
|
730
|
-
});
|
|
731
|
-
}
|
|
732
|
-
//#endregion
|
|
733
719
|
//#region src/cli/commands/root/pre-commit/createStepRunner.ts
|
|
734
720
|
const runCommandAndLogToConsole = (0, execa.execa)({
|
|
735
721
|
stdio: "inherit",
|
|
@@ -833,7 +819,6 @@ function sayHello(program) {
|
|
|
833
819
|
//#region src/cli/commands/root/index.ts
|
|
834
820
|
function root(program) {
|
|
835
821
|
loadCommands(program, {
|
|
836
|
-
encryptWithKey,
|
|
837
822
|
preCommit,
|
|
838
823
|
sayHello
|
|
839
824
|
});
|
|
@@ -1181,7 +1166,7 @@ function template(program) {
|
|
|
1181
1166
|
//#endregion
|
|
1182
1167
|
//#region package.json
|
|
1183
1168
|
var name = "alex-c-line";
|
|
1184
|
-
var version$1 = "2.
|
|
1169
|
+
var version$1 = "2.6.0";
|
|
1185
1170
|
var description = "Command-line tool with commands to streamline the developer workflow.";
|
|
1186
1171
|
//#endregion
|
|
1187
1172
|
//#region src/utility/updates/checkUpdate.ts
|
package/dist/index.js
CHANGED
|
@@ -14,8 +14,8 @@ import { ExecaError, execa } from "execa";
|
|
|
14
14
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
15
15
|
import { DependencyGroup, PackageManager, getDependenciesFromGroup, getExpectedTgzName, getPackageJsonContents, packageJsonNotFoundError } from "@alextheman/utility/internal";
|
|
16
16
|
import z from "zod";
|
|
17
|
-
import { encryptWithKey, parseFilePath } from "@alextheman/utility/node";
|
|
18
17
|
import matter from "gray-matter";
|
|
18
|
+
import { parseFilePath } from "@alextheman/utility/node";
|
|
19
19
|
import axios from "axios";
|
|
20
20
|
import supportsColor from "supports-color";
|
|
21
21
|
import { randomUUID } from "node:crypto";
|
|
@@ -685,20 +685,6 @@ function localPackage(program) {
|
|
|
685
685
|
loadCommands(program.command("local-package").description("Manage the use of local packages in your JavaScript project."), { localPackageUse });
|
|
686
686
|
}
|
|
687
687
|
//#endregion
|
|
688
|
-
//#region src/cli/commands/root/encrypt-with-key.ts
|
|
689
|
-
function encryptWithKey$1(program) {
|
|
690
|
-
program.command("encrypt-with-key").alias("encrypt").description("Encrypt a secret given the public base64 key and the thing you want to encrypt.").argument("<publicKey>", "The public base64 key to encrypt with").argument("<plaintextValue>", "The value to encrypt in plaintext").action(async (publicKey, plaintextValue) => {
|
|
691
|
-
try {
|
|
692
|
-
console.info(await encryptWithKey(publicKey, plaintextValue));
|
|
693
|
-
} catch {
|
|
694
|
-
program.error(`${errorPrefix} Encryption failed. Please double-check that the given key is a valid base 64 string.`, {
|
|
695
|
-
exitCode: 1,
|
|
696
|
-
code: "ENCRYPTION_FAILED"
|
|
697
|
-
});
|
|
698
|
-
}
|
|
699
|
-
});
|
|
700
|
-
}
|
|
701
|
-
//#endregion
|
|
702
688
|
//#region src/cli/commands/root/pre-commit/createStepRunner.ts
|
|
703
689
|
const runCommandAndLogToConsole = execa({
|
|
704
690
|
stdio: "inherit",
|
|
@@ -802,7 +788,6 @@ function sayHello(program) {
|
|
|
802
788
|
//#region src/cli/commands/root/index.ts
|
|
803
789
|
function root(program) {
|
|
804
790
|
loadCommands(program, {
|
|
805
|
-
encryptWithKey: encryptWithKey$1,
|
|
806
791
|
preCommit,
|
|
807
792
|
sayHello
|
|
808
793
|
});
|
|
@@ -1150,7 +1135,7 @@ function template(program) {
|
|
|
1150
1135
|
//#endregion
|
|
1151
1136
|
//#region package.json
|
|
1152
1137
|
var name = "alex-c-line";
|
|
1153
|
-
var version$1 = "2.
|
|
1138
|
+
var version$1 = "2.6.0";
|
|
1154
1139
|
var description = "Command-line tool with commands to streamline the developer workflow.";
|
|
1155
1140
|
//#endregion
|
|
1156
1141
|
//#region src/utility/updates/checkUpdate.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alex-c-line",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "Command-line tool with commands to streamline the developer workflow.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,42 +34,42 @@
|
|
|
34
34
|
"templates"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@alextheman/utility": "5.
|
|
38
|
-
"@inquirer/prompts": "8.
|
|
39
|
-
"axios": "1.
|
|
37
|
+
"@alextheman/utility": "5.10.1",
|
|
38
|
+
"@inquirer/prompts": "8.4.1",
|
|
39
|
+
"axios": "1.15.0",
|
|
40
40
|
"boxen": "8.0.1",
|
|
41
41
|
"chalk": "5.6.2",
|
|
42
42
|
"commander": "14.0.3",
|
|
43
|
-
"dotenv": "17.4.
|
|
43
|
+
"dotenv": "17.4.1",
|
|
44
44
|
"dotenv-stringify": "3.0.1",
|
|
45
45
|
"env-paths": "4.0.0",
|
|
46
46
|
"execa": "9.6.1",
|
|
47
47
|
"figlet": "1.11.0",
|
|
48
48
|
"gray-matter": "4.0.3",
|
|
49
|
-
"libsodium-wrappers": "0.8.2",
|
|
50
49
|
"semver": "7.7.4",
|
|
51
50
|
"supports-color": "10.2.2",
|
|
52
51
|
"zod": "4.3.6"
|
|
53
52
|
},
|
|
54
53
|
"devDependencies": {
|
|
55
|
-
"@alextheman/eslint-plugin": "5.
|
|
54
|
+
"@alextheman/eslint-plugin": "5.12.0",
|
|
56
55
|
"@commander-js/extra-typings": "14.0.0",
|
|
57
56
|
"@types/eslint": "9.6.1",
|
|
58
|
-
"@types/node": "25.
|
|
57
|
+
"@types/node": "25.6.0",
|
|
59
58
|
"@types/semver": "7.7.1",
|
|
60
59
|
"@types/update-notifier": "6.0.8",
|
|
61
60
|
"cross-env": "10.1.0",
|
|
62
61
|
"dotenv-cli": "11.0.0",
|
|
63
62
|
"eslint": "10.2.0",
|
|
64
63
|
"husky": "9.1.7",
|
|
65
|
-
"
|
|
64
|
+
"markdownlint-cli2": "0.22.0",
|
|
65
|
+
"prettier": "3.8.2",
|
|
66
66
|
"tempy": "3.2.0",
|
|
67
67
|
"ts-node": "10.9.2",
|
|
68
68
|
"tsdown": "0.21.7",
|
|
69
69
|
"typescript": "6.0.2",
|
|
70
|
-
"typescript-eslint": "8.58.
|
|
70
|
+
"typescript-eslint": "8.58.1",
|
|
71
71
|
"vite-tsconfig-paths": "6.1.1",
|
|
72
|
-
"vitest": "4.1.
|
|
72
|
+
"vitest": "4.1.4"
|
|
73
73
|
},
|
|
74
74
|
"engines": {
|
|
75
75
|
"node": ">=22.0.0"
|
|
@@ -79,15 +79,17 @@
|
|
|
79
79
|
"command": "bash -c 'pnpm run build && echo && echo \"Command output:\" && node dist/index.js \"$@\"' --",
|
|
80
80
|
"create-local-package": "pnpm run build && rm -f alex-c-line-*.tgz && pnpm pack",
|
|
81
81
|
"create-release-note": "bash -c 'git pull origin main && pnpm run command template release-note create $@' --",
|
|
82
|
-
"format": "pnpm run format-prettier && pnpm run format-eslint",
|
|
82
|
+
"format": "pnpm run format-prettier && pnpm run format-eslint && pnpm run format-markdownlint",
|
|
83
83
|
"format-eslint": "eslint --fix --suppress-all \"package.json\" \"{src,tests}/**/*.ts\" && rm -f eslint-suppressions.json",
|
|
84
|
+
"format-markdownlint": "pnpm exec markdownlint-cli2 --fix \"**/*.md\" \"!{node_modules,dist}/**\" | grep -v \"^Finding:\"",
|
|
84
85
|
"format-prettier": "pnpm run format-prettier-typescript && pnpm run format-prettier-javascript && pnpm run format-prettier-yml && pnpm run format-prettier-html",
|
|
85
86
|
"format-prettier-html": "prettier --write \"**/*.html\"",
|
|
86
87
|
"format-prettier-javascript": "prettier --write \"./**/*.js\"",
|
|
87
88
|
"format-prettier-typescript": "prettier --write --parser typescript \"./**/*.ts\"",
|
|
88
89
|
"format-prettier-yml": "prettier --write \"./**/*.{yml,yaml}\"",
|
|
89
|
-
"lint": "pnpm run lint-tsc && pnpm run lint-eslint && pnpm run lint-prettier && pnpm run lint-pre-release",
|
|
90
|
+
"lint": "pnpm run lint-tsc && pnpm run lint-eslint && pnpm run lint-markdownlint && pnpm run lint-prettier && pnpm run lint-markdownlint && pnpm run lint-pre-release",
|
|
90
91
|
"lint-eslint": "eslint \"package.json\" \"{src,tests}/**/*.ts\"",
|
|
92
|
+
"lint-markdownlint": "bash -o pipefail -c 'pnpm exec markdownlint-cli2 \"**/*.md\" \"!{node_modules,dist}/**\"| grep -v \"^Finding:\"'",
|
|
91
93
|
"lint-pre-release": "node dist/index.js package-json check --rules no-pre-release-dependencies",
|
|
92
94
|
"lint-prettier": "pnpm run lint-prettier-typescript && pnpm run lint-prettier-javascript && pnpm run lint-prettier-yml && pnpm run lint-prettier-html",
|
|
93
95
|
"lint-prettier-html": "prettier --check \"**/*.html\"",
|