alex-c-line 1.16.0 → 1.16.1

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.
@@ -29,18 +29,6 @@ let _alextheman_utility = require("@alextheman/utility");
29
29
  let zod = require("zod");
30
30
  zod = __toESM(zod);
31
31
 
32
- //#region src/configs/internalConfig.ts
33
- const internalConfig = { preCommit: {
34
- packageManager: "pnpm",
35
- steps: [
36
- "format",
37
- "lint",
38
- "test"
39
- ]
40
- } };
41
- var internalConfig_default = internalConfig;
42
-
43
- //#endregion
44
32
  //#region src/configs/types/PreCommitConfig.ts
45
33
  const PackageManager = {
46
34
  NPM: "npm",
@@ -89,5 +77,4 @@ var ConfigFileName_default = ConfigFileName;
89
77
  exports.ConfigFileName = ConfigFileName_default;
90
78
  exports.defineAlexCLineConfig = defineAlexCLineConfig_default;
91
79
  exports.definePreCommitConfig = definePreCommitConfig_default;
92
- exports.definePreCommitPrivateConfig = definePreCommitPrivateConfig_default;
93
- exports.internalConfig = internalConfig_default;
80
+ exports.definePreCommitPrivateConfig = definePreCommitPrivateConfig_default;
@@ -2,8 +2,8 @@ import { CreateEnumType } from "@alextheman/utility";
2
2
 
3
3
  //#region src/configs/types/PreCommitConfig.d.ts
4
4
  declare const PackageManager: {
5
- NPM: string;
6
- PNPM: string;
5
+ readonly NPM: "npm";
6
+ readonly PNPM: "pnpm";
7
7
  };
8
8
  type PackageManager = CreateEnumType<typeof PackageManager>;
9
9
  interface PreCommitStepOptions {
@@ -24,43 +24,6 @@ interface AlexCLineConfig<ScriptName extends string = string> {
24
24
  preCommit: PreCommitConfig<ScriptName>;
25
25
  }
26
26
  //#endregion
27
- //#region package.d.ts
28
-
29
- declare let scripts: {
30
- build: string;
31
- command: string;
32
- "create-release-note-major": string;
33
- "create-release-note-minor": string;
34
- "create-release-note-patch": string;
35
- format: string;
36
- "format-eslint": string;
37
- "format-prettier": string;
38
- "format-prettier-javascript": string;
39
- "format-prettier-typescript": string;
40
- lint: string;
41
- "lint-eslint": string;
42
- "lint-prettier": string;
43
- "lint-prettier-javascript": string;
44
- "lint-prettier-typescript": string;
45
- "lint-tsc": string;
46
- "pre-commit": string;
47
- prepare: string;
48
- "prepare-live-eslint-plugin": string;
49
- "prepare-live-utility": string;
50
- "prepare-local-eslint-plugin": string;
51
- "prepare-local-utility": string;
52
- test: string;
53
- "test-watch": string;
54
- "update-dependencies": string;
55
- "use-live-eslint-plugin": string;
56
- "use-live-utility": string;
57
- "use-local-eslint-plugin": string;
58
- "use-local-utility": string;
59
- };
60
- //#endregion
61
- //#region src/configs/internalConfig.d.ts
62
- declare const internalConfig: AlexCLineConfig<keyof typeof scripts>;
63
- //#endregion
64
27
  //#region src/configs/helpers/defineAlexCLineConfig.d.ts
65
28
  declare function defineAlexCLineConfig<ScriptName extends string = string>(config: AlexCLineConfig<ScriptName>): AlexCLineConfig;
66
29
  //#endregion
@@ -84,4 +47,4 @@ declare const ConfigFileName: {
84
47
  };
85
48
  type ConfigFileName = CreateEnumType<typeof ConfigFileName>;
86
49
  //#endregion
87
- export { AlexCLineConfig, ConfigFileName, PackageManager, PreCommitConfig, PreCommitStepOptions, defineAlexCLineConfig, definePreCommitConfig, definePreCommitPrivateConfig, internalConfig };
50
+ export { AlexCLineConfig, ConfigFileName, PackageManager, PreCommitConfig, PreCommitStepOptions, defineAlexCLineConfig, definePreCommitConfig, definePreCommitPrivateConfig };
@@ -3,8 +3,8 @@ import z from "zod";
3
3
 
4
4
  //#region src/configs/types/PreCommitConfig.d.ts
5
5
  declare const PackageManager: {
6
- NPM: string;
7
- PNPM: string;
6
+ readonly NPM: "npm";
7
+ readonly PNPM: "pnpm";
8
8
  };
9
9
  type PackageManager = CreateEnumType<typeof PackageManager>;
10
10
  interface PreCommitStepOptions {
@@ -25,43 +25,6 @@ interface AlexCLineConfig<ScriptName extends string = string> {
25
25
  preCommit: PreCommitConfig<ScriptName>;
26
26
  }
27
27
  //#endregion
28
- //#region package.d.ts
29
-
30
- declare let scripts: {
31
- build: string;
32
- command: string;
33
- "create-release-note-major": string;
34
- "create-release-note-minor": string;
35
- "create-release-note-patch": string;
36
- format: string;
37
- "format-eslint": string;
38
- "format-prettier": string;
39
- "format-prettier-javascript": string;
40
- "format-prettier-typescript": string;
41
- lint: string;
42
- "lint-eslint": string;
43
- "lint-prettier": string;
44
- "lint-prettier-javascript": string;
45
- "lint-prettier-typescript": string;
46
- "lint-tsc": string;
47
- "pre-commit": string;
48
- prepare: string;
49
- "prepare-live-eslint-plugin": string;
50
- "prepare-live-utility": string;
51
- "prepare-local-eslint-plugin": string;
52
- "prepare-local-utility": string;
53
- test: string;
54
- "test-watch": string;
55
- "update-dependencies": string;
56
- "use-live-eslint-plugin": string;
57
- "use-live-utility": string;
58
- "use-local-eslint-plugin": string;
59
- "use-local-utility": string;
60
- };
61
- //#endregion
62
- //#region src/configs/internalConfig.d.ts
63
- declare const internalConfig: AlexCLineConfig<keyof typeof scripts>;
64
- //#endregion
65
28
  //#region src/configs/helpers/defineAlexCLineConfig.d.ts
66
29
  declare function defineAlexCLineConfig<ScriptName extends string = string>(config: AlexCLineConfig<ScriptName>): AlexCLineConfig;
67
30
  //#endregion
@@ -85,4 +48,4 @@ declare const ConfigFileName: {
85
48
  };
86
49
  type ConfigFileName = CreateEnumType<typeof ConfigFileName>;
87
50
  //#endregion
88
- export { AlexCLineConfig, ConfigFileName, PackageManager, PreCommitConfig, PreCommitStepOptions, defineAlexCLineConfig, definePreCommitConfig, definePreCommitPrivateConfig, internalConfig };
51
+ export { AlexCLineConfig, ConfigFileName, PackageManager, PreCommitConfig, PreCommitStepOptions, defineAlexCLineConfig, definePreCommitConfig, definePreCommitPrivateConfig };
@@ -1,18 +1,6 @@
1
1
  import { DataError, parseZodSchema } from "@alextheman/utility";
2
2
  import z from "zod";
3
3
 
4
- //#region src/configs/internalConfig.ts
5
- const internalConfig = { preCommit: {
6
- packageManager: "pnpm",
7
- steps: [
8
- "format",
9
- "lint",
10
- "test"
11
- ]
12
- } };
13
- var internalConfig_default = internalConfig;
14
-
15
- //#endregion
16
4
  //#region src/configs/types/PreCommitConfig.ts
17
5
  const PackageManager = {
18
6
  NPM: "npm",
@@ -58,4 +46,4 @@ const ConfigFileName = {
58
46
  var ConfigFileName_default = ConfigFileName;
59
47
 
60
48
  //#endregion
61
- export { ConfigFileName_default as ConfigFileName, defineAlexCLineConfig_default as defineAlexCLineConfig, definePreCommitConfig_default as definePreCommitConfig, definePreCommitPrivateConfig_default as definePreCommitPrivateConfig, internalConfig_default as internalConfig };
49
+ export { ConfigFileName_default as ConfigFileName, defineAlexCLineConfig_default as defineAlexCLineConfig, definePreCommitConfig_default as definePreCommitConfig, definePreCommitPrivateConfig_default as definePreCommitPrivateConfig };
@@ -0,0 +1,28 @@
1
+
2
+ //#region src/configs/internal/alexCLineConfig.ts
3
+ const alexCLineConfig = { preCommit: {
4
+ packageManager: "pnpm",
5
+ steps: [
6
+ "format",
7
+ "lint",
8
+ "test"
9
+ ]
10
+ } };
11
+ var alexCLineConfig_default = alexCLineConfig;
12
+
13
+ //#endregion
14
+ //#region src/configs/internal/packageConfig.ts
15
+ const packageConfig = { preCommit: {
16
+ packageManager: "pnpm",
17
+ steps: [
18
+ "build",
19
+ "format",
20
+ "lint",
21
+ "test"
22
+ ]
23
+ } };
24
+ var packageConfig_default = packageConfig;
25
+
26
+ //#endregion
27
+ exports.alexCLineConfig = alexCLineConfig_default;
28
+ exports.packageConfig = packageConfig_default;
@@ -0,0 +1,67 @@
1
+ import { CreateEnumType } from "@alextheman/utility";
2
+
3
+ //#region src/configs/types/PreCommitConfig.d.ts
4
+ declare const PackageManager: {
5
+ readonly NPM: "npm";
6
+ readonly PNPM: "pnpm";
7
+ };
8
+ type PackageManager = CreateEnumType<typeof PackageManager>;
9
+ interface PreCommitStepOptions {
10
+ /** Arguments to pass to the given script */
11
+ arguments?: string[];
12
+ }
13
+ interface PreCommitConfig<ScriptName extends string = string> {
14
+ /** The name of the package manager being used (can choose from `npm` or `pnpm`). If not provided, can be inferred from the packageManager field in package.json. */
15
+ packageManager?: PackageManager;
16
+ /** Allow the hook to run even if there are no staged changes. */
17
+ allowNoStagedChanges?: boolean;
18
+ /** The steps to run in the pre-commit hook. */
19
+ steps: ScriptName[] | [ScriptName, PreCommitStepOptions][];
20
+ }
21
+ //#endregion
22
+ //#region src/configs/types/AlexCLineConfig.d.ts
23
+ interface AlexCLineConfig<ScriptName extends string = string> {
24
+ preCommit: PreCommitConfig<ScriptName>;
25
+ }
26
+ //#endregion
27
+ //#region package.d.ts
28
+
29
+ declare let scripts: {
30
+ build: string;
31
+ command: string;
32
+ "create-release-note-major": string;
33
+ "create-release-note-minor": string;
34
+ "create-release-note-patch": string;
35
+ format: string;
36
+ "format-eslint": string;
37
+ "format-prettier": string;
38
+ "format-prettier-javascript": string;
39
+ "format-prettier-typescript": string;
40
+ lint: string;
41
+ "lint-eslint": string;
42
+ "lint-prettier": string;
43
+ "lint-prettier-javascript": string;
44
+ "lint-prettier-typescript": string;
45
+ "lint-tsc": string;
46
+ "pre-commit": string;
47
+ prepare: string;
48
+ "prepare-live-eslint-plugin": string;
49
+ "prepare-live-utility": string;
50
+ "prepare-local-eslint-plugin": string;
51
+ "prepare-local-utility": string;
52
+ test: string;
53
+ "test-watch": string;
54
+ "update-dependencies": string;
55
+ "use-live-eslint-plugin": string;
56
+ "use-live-utility": string;
57
+ "use-local-eslint-plugin": string;
58
+ "use-local-utility": string;
59
+ };
60
+ //#endregion
61
+ //#region src/configs/internal/alexCLineConfig.d.ts
62
+ declare const alexCLineConfig: AlexCLineConfig<keyof typeof scripts>;
63
+ //#endregion
64
+ //#region src/configs/internal/packageConfig.d.ts
65
+ declare const packageConfig: AlexCLineConfig<"build" | "format" | "lint" | "test">;
66
+ //#endregion
67
+ export { alexCLineConfig, packageConfig };
@@ -0,0 +1,67 @@
1
+ import { CreateEnumType } from "@alextheman/utility";
2
+
3
+ //#region src/configs/types/PreCommitConfig.d.ts
4
+ declare const PackageManager: {
5
+ readonly NPM: "npm";
6
+ readonly PNPM: "pnpm";
7
+ };
8
+ type PackageManager = CreateEnumType<typeof PackageManager>;
9
+ interface PreCommitStepOptions {
10
+ /** Arguments to pass to the given script */
11
+ arguments?: string[];
12
+ }
13
+ interface PreCommitConfig<ScriptName extends string = string> {
14
+ /** The name of the package manager being used (can choose from `npm` or `pnpm`). If not provided, can be inferred from the packageManager field in package.json. */
15
+ packageManager?: PackageManager;
16
+ /** Allow the hook to run even if there are no staged changes. */
17
+ allowNoStagedChanges?: boolean;
18
+ /** The steps to run in the pre-commit hook. */
19
+ steps: ScriptName[] | [ScriptName, PreCommitStepOptions][];
20
+ }
21
+ //#endregion
22
+ //#region src/configs/types/AlexCLineConfig.d.ts
23
+ interface AlexCLineConfig<ScriptName extends string = string> {
24
+ preCommit: PreCommitConfig<ScriptName>;
25
+ }
26
+ //#endregion
27
+ //#region package.d.ts
28
+
29
+ declare let scripts: {
30
+ build: string;
31
+ command: string;
32
+ "create-release-note-major": string;
33
+ "create-release-note-minor": string;
34
+ "create-release-note-patch": string;
35
+ format: string;
36
+ "format-eslint": string;
37
+ "format-prettier": string;
38
+ "format-prettier-javascript": string;
39
+ "format-prettier-typescript": string;
40
+ lint: string;
41
+ "lint-eslint": string;
42
+ "lint-prettier": string;
43
+ "lint-prettier-javascript": string;
44
+ "lint-prettier-typescript": string;
45
+ "lint-tsc": string;
46
+ "pre-commit": string;
47
+ prepare: string;
48
+ "prepare-live-eslint-plugin": string;
49
+ "prepare-live-utility": string;
50
+ "prepare-local-eslint-plugin": string;
51
+ "prepare-local-utility": string;
52
+ test: string;
53
+ "test-watch": string;
54
+ "update-dependencies": string;
55
+ "use-live-eslint-plugin": string;
56
+ "use-live-utility": string;
57
+ "use-local-eslint-plugin": string;
58
+ "use-local-utility": string;
59
+ };
60
+ //#endregion
61
+ //#region src/configs/internal/alexCLineConfig.d.ts
62
+ declare const alexCLineConfig: AlexCLineConfig<keyof typeof scripts>;
63
+ //#endregion
64
+ //#region src/configs/internal/packageConfig.d.ts
65
+ declare const packageConfig: AlexCLineConfig<"build" | "format" | "lint" | "test">;
66
+ //#endregion
67
+ export { alexCLineConfig, packageConfig };
@@ -0,0 +1,26 @@
1
+ //#region src/configs/internal/alexCLineConfig.ts
2
+ const alexCLineConfig = { preCommit: {
3
+ packageManager: "pnpm",
4
+ steps: [
5
+ "format",
6
+ "lint",
7
+ "test"
8
+ ]
9
+ } };
10
+ var alexCLineConfig_default = alexCLineConfig;
11
+
12
+ //#endregion
13
+ //#region src/configs/internal/packageConfig.ts
14
+ const packageConfig = { preCommit: {
15
+ packageManager: "pnpm",
16
+ steps: [
17
+ "build",
18
+ "format",
19
+ "lint",
20
+ "test"
21
+ ]
22
+ } };
23
+ var packageConfig_default = packageConfig;
24
+
25
+ //#endregion
26
+ export { alexCLineConfig_default as alexCLineConfig, packageConfig_default as packageConfig };
package/dist/index.cjs CHANGED
@@ -699,7 +699,7 @@ var commands_default = createCommands;
699
699
 
700
700
  //#endregion
701
701
  //#region package.json
702
- var version = "1.16.0";
702
+ var version = "1.16.1";
703
703
  var package_default = {
704
704
  name: "alex-c-line",
705
705
  version,
@@ -711,12 +711,20 @@ var package_default = {
711
711
  license: "ISC",
712
712
  author: "alextheman",
713
713
  type: "module",
714
- exports: { "./configs": {
715
- "types": "./dist/configs/index.d.ts",
716
- "require": "./dist/configs/index.cjs",
717
- "import": "./dist/configs/index.js",
718
- "default": "./dist/configs/index.js"
719
- } },
714
+ exports: {
715
+ "./configs": {
716
+ "types": "./dist/configs/index.d.ts",
717
+ "require": "./dist/configs/index.cjs",
718
+ "import": "./dist/configs/index.js",
719
+ "default": "./dist/configs/index.js"
720
+ },
721
+ "./configs/internal": {
722
+ "types": "./dist/configs/internal/index.d.ts",
723
+ "require": "./dist/configs/internal/index.cjs",
724
+ "import": "./dist/configs/internal/index.js",
725
+ "default": "./dist/configs/internal/index.js"
726
+ }
727
+ },
720
728
  main: "dist/index.js",
721
729
  module: "dist/index.cjs",
722
730
  types: "dist/index.d.ts",
package/dist/index.js CHANGED
@@ -666,7 +666,7 @@ var commands_default = createCommands;
666
666
 
667
667
  //#endregion
668
668
  //#region package.json
669
- var version = "1.16.0";
669
+ var version = "1.16.1";
670
670
  var package_default = {
671
671
  name: "alex-c-line",
672
672
  version,
@@ -678,12 +678,20 @@ var package_default = {
678
678
  license: "ISC",
679
679
  author: "alextheman",
680
680
  type: "module",
681
- exports: { "./configs": {
682
- "types": "./dist/configs/index.d.ts",
683
- "require": "./dist/configs/index.cjs",
684
- "import": "./dist/configs/index.js",
685
- "default": "./dist/configs/index.js"
686
- } },
681
+ exports: {
682
+ "./configs": {
683
+ "types": "./dist/configs/index.d.ts",
684
+ "require": "./dist/configs/index.cjs",
685
+ "import": "./dist/configs/index.js",
686
+ "default": "./dist/configs/index.js"
687
+ },
688
+ "./configs/internal": {
689
+ "types": "./dist/configs/internal/index.d.ts",
690
+ "require": "./dist/configs/internal/index.cjs",
691
+ "import": "./dist/configs/internal/index.js",
692
+ "default": "./dist/configs/internal/index.js"
693
+ }
694
+ },
687
695
  main: "dist/index.js",
688
696
  module: "dist/index.cjs",
689
697
  types: "dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alex-c-line",
3
- "version": "1.16.0",
3
+ "version": "1.16.1",
4
4
  "description": "Command-line tool with commands to streamline the developer workflow.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,6 +15,12 @@
15
15
  "require": "./dist/configs/index.cjs",
16
16
  "import": "./dist/configs/index.js",
17
17
  "default": "./dist/configs/index.js"
18
+ },
19
+ "./configs/internal": {
20
+ "types": "./dist/configs/internal/index.d.ts",
21
+ "require": "./dist/configs/internal/index.cjs",
22
+ "import": "./dist/configs/internal/index.js",
23
+ "default": "./dist/configs/internal/index.js"
18
24
  }
19
25
  },
20
26
  "main": "dist/index.js",