electron-reactive-event-cli 1.0.39 → 1.0.42

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.
Files changed (73) hide show
  1. package/Distribution/Initialize.Types.d.ts +0 -11
  2. package/Distribution/Initialize.Types.d.ts.map +1 -1
  3. package/Distribution/Register/RegisterCommand.Types.d.ts +2 -0
  4. package/Distribution/Register/RegisterCommand.Types.d.ts.map +1 -0
  5. package/Distribution/Register/RegisterCommand.Types.js +7 -0
  6. package/Distribution/Register/RegisterCommand.Types.js.map +1 -0
  7. package/Distribution/Register/RegisterCommand.d.ts +3 -0
  8. package/Distribution/Register/RegisterCommand.d.ts.map +1 -0
  9. package/Distribution/Register/RegisterCommand.js +120 -0
  10. package/Distribution/Register/RegisterCommand.js.map +1 -0
  11. package/Distribution/Register/RegisterCommandBin.d.ts +2 -0
  12. package/Distribution/Register/RegisterCommandBin.d.ts.map +1 -0
  13. package/Distribution/Register/RegisterCommandBin.js +8 -0
  14. package/Distribution/Register/RegisterCommandBin.js.map +1 -0
  15. package/Distribution/Register/index.d.ts +2 -0
  16. package/Distribution/Register/index.d.ts.map +1 -0
  17. package/Distribution/Register/index.js +7 -0
  18. package/Distribution/Register/index.js.map +1 -0
  19. package/Distribution/Schema.Types.d.ts +0 -7
  20. package/Distribution/Schema.Types.d.ts.map +1 -1
  21. package/Distribution/Select.Types.d.ts +1 -4
  22. package/Distribution/Select.Types.d.ts.map +1 -1
  23. package/Distribution/Select.d.ts +1 -8
  24. package/Distribution/Select.d.ts.map +1 -1
  25. package/Distribution/Select.js +1 -344
  26. package/Distribution/Select.js.map +1 -1
  27. package/Distribution/Setup/Prompt.Types.d.ts +12 -0
  28. package/Distribution/Setup/Prompt.Types.d.ts.map +1 -0
  29. package/Distribution/Setup/Prompt.Types.js +7 -0
  30. package/Distribution/Setup/Prompt.Types.js.map +1 -0
  31. package/Distribution/Setup/Prompt.d.ts +10 -0
  32. package/Distribution/Setup/Prompt.d.ts.map +1 -0
  33. package/Distribution/Setup/Prompt.js +250 -0
  34. package/Distribution/Setup/Prompt.js.map +1 -0
  35. package/Distribution/Setup/SetupCommand.Types.d.ts +5 -0
  36. package/Distribution/Setup/SetupCommand.Types.d.ts.map +1 -0
  37. package/Distribution/Setup/SetupCommand.Types.js +7 -0
  38. package/Distribution/Setup/SetupCommand.Types.js.map +1 -0
  39. package/Distribution/Setup/SetupCommand.d.ts +3 -0
  40. package/Distribution/Setup/SetupCommand.d.ts.map +1 -0
  41. package/Distribution/Setup/SetupCommand.js +259 -0
  42. package/Distribution/Setup/SetupCommand.js.map +1 -0
  43. package/Distribution/Setup/TsConfig.Types.d.ts +10 -0
  44. package/Distribution/Setup/TsConfig.Types.d.ts.map +1 -0
  45. package/Distribution/Setup/TsConfig.Types.js +7 -0
  46. package/Distribution/Setup/TsConfig.Types.js.map +1 -0
  47. package/Distribution/Setup/TsConfig.d.ts +7 -0
  48. package/Distribution/Setup/TsConfig.d.ts.map +1 -0
  49. package/Distribution/Setup/TsConfig.js +62 -0
  50. package/Distribution/Setup/TsConfig.js.map +1 -0
  51. package/Distribution/Setup/index.d.ts +6 -0
  52. package/Distribution/Setup/index.d.ts.map +1 -0
  53. package/Distribution/Setup/index.js +11 -0
  54. package/Distribution/Setup/index.js.map +1 -0
  55. package/Distribution/Setup.js +1 -115
  56. package/Distribution/Setup.js.map +1 -1
  57. package/Distribution/Shared.d.ts +1 -2
  58. package/Distribution/Shared.d.ts.map +1 -1
  59. package/Distribution/Shared.js +1 -11
  60. package/Distribution/Shared.js.map +1 -1
  61. package/Distribution/Utility.Types.d.ts +2 -0
  62. package/Distribution/Utility.Types.d.ts.map +1 -0
  63. package/Distribution/Utility.Types.js +7 -0
  64. package/Distribution/Utility.Types.js.map +1 -0
  65. package/Distribution/Utility.d.ts +2 -1
  66. package/Distribution/Utility.d.ts.map +1 -1
  67. package/Distribution/Utility.js +16 -1
  68. package/Distribution/Utility.js.map +1 -1
  69. package/Distribution/index.d.ts +2 -3
  70. package/Distribution/index.d.ts.map +1 -1
  71. package/Distribution/index.js +2 -3
  72. package/Distribution/index.js.map +1 -1
  73. package/package.json +6 -5
@@ -0,0 +1,7 @@
1
+ import type { FBaseInterfaceName } from "../index.js";
2
+ import TypeScript from "typescript";
3
+ export declare function FormatDiagnostics(Diagnostics: ReadonlyArray<TypeScript.Diagnostic>): string;
4
+ export declare function GetRightmostIdentifierText(Expression: TypeScript.Expression): string | undefined;
5
+ export declare function IsSearchableProjectSourceFile(SourceFile: TypeScript.SourceFile): boolean;
6
+ export declare function GetMatchingInterfacesInSourceFile(SourceFile: TypeScript.SourceFile, InterfaceName: FBaseInterfaceName): ReadonlyArray<string>;
7
+ //# sourceMappingURL=TsConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TsConfig.d.ts","sourceRoot":"","sources":["../../Source/Setup/TsConfig.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,aAAa,CAAC,UAAU,CAAC,UAAU,CAAC,GAAG,MAAM,CAqB3F;AAED,wBAAgB,0BAA0B,CACtC,UAAU,EAAE,UAAU,CAAC,UAAU,GAClC,MAAM,GAAG,SAAS,CAapB;AAED,wBAAgB,6BAA6B,CACzC,UAAU,EAAE,UAAU,CAAC,UAAU,GAClC,OAAO,CAaT;AAED,wBAAgB,iCAAiC,CAC7C,UAAU,EAAE,UAAU,CAAC,UAAU,EACjC,aAAa,EAAE,kBAAkB,GAClC,aAAa,CAAC,MAAM,CAAC,CAsCvB"}
@@ -0,0 +1,62 @@
1
+ /* File: TsConfig.ts
2
+ * Author: Gage Sorrell <gage@sorrell.sh>
3
+ * Copyright: (c) 2026 Gage Sorrell
4
+ * License: MIT
5
+ */
6
+ import TypeScript from "typescript";
7
+ export function FormatDiagnostics(Diagnostics) {
8
+ return TypeScript.formatDiagnosticsWithColorAndContext(Diagnostics, {
9
+ getCanonicalFileName(FileName) {
10
+ return FileName;
11
+ },
12
+ getCurrentDirectory() {
13
+ return process.cwd();
14
+ },
15
+ getNewLine() {
16
+ return TypeScript.sys.newLine;
17
+ }
18
+ });
19
+ }
20
+ export function GetRightmostIdentifierText(Expression) {
21
+ if (TypeScript.isIdentifier(Expression)) {
22
+ return Expression.text;
23
+ }
24
+ if (TypeScript.isPropertyAccessExpression(Expression)) {
25
+ return Expression.name.text;
26
+ }
27
+ return undefined;
28
+ }
29
+ export function IsSearchableProjectSourceFile(SourceFile) {
30
+ if (SourceFile.isDeclarationFile) {
31
+ return false;
32
+ }
33
+ const FileNameLower = SourceFile.fileName.toLowerCase();
34
+ return FileNameLower.endsWith(".ts")
35
+ || FileNameLower.endsWith(".tsx")
36
+ || FileNameLower.endsWith(".mts")
37
+ || FileNameLower.endsWith(".cts");
38
+ }
39
+ export function GetMatchingInterfacesInSourceFile(SourceFile, InterfaceName) {
40
+ const MatchingInterfaceNames = [];
41
+ const Visit = (Node) => {
42
+ if (TypeScript.isInterfaceDeclaration(Node)) {
43
+ const HeritageClauses = Node.heritageClauses ?? [];
44
+ for (const HeritageClause of HeritageClauses) {
45
+ if (HeritageClause.token !== TypeScript.SyntaxKind.ExtendsKeyword) {
46
+ continue;
47
+ }
48
+ for (const HeritageType of HeritageClause.types) {
49
+ const ReferencedTypeName = GetRightmostIdentifierText(HeritageType.expression);
50
+ if (ReferencedTypeName === InterfaceName) {
51
+ MatchingInterfaceNames.push(Node.name.text);
52
+ break;
53
+ }
54
+ }
55
+ }
56
+ }
57
+ TypeScript.forEachChild(Node, Visit);
58
+ };
59
+ Visit(SourceFile);
60
+ return MatchingInterfaceNames;
61
+ }
62
+ //# sourceMappingURL=TsConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TsConfig.js","sourceRoot":"","sources":["../../Source/Setup/TsConfig.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OA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I,CAAC,EAC3C,CAAC;YACG,MAAM,eAAe,GAA6C,IAAI,CAAC,eAAe,IAAI,EAAE,CAAC;YAE7F,KAAK,MAAM,cAAc,IAAI,eAAe,EAC5C,CAAC;gBACG,IAAI,cAAc,CAAC,KAAK,KAAK,UAAU,CAAC,UAAU,CAAC,cAAc,EACjE,CAAC;oBACG,SAAS;gBACb,CAAC;gBAED,KAAK,MAAM,YAAY,IAAI,cAAc,CAAC,KAAK,EAC/C,CAAC;oBACG,MAAM,kBAAkB,GAAuB,0BAA0B,CACrE,YAAY,CAAC,UAAU,CAC1B,CAAC;oBAEF,IAAI,kBAAkB,KAAK,aAAa,EACxC,CAAC;wBACG,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;wBAC5C,MAAM;oBACV,CAAC;gBACL,CAAC;YACL,CAAC;QACL,CAAC;QAED,UAAU,CAAC,YAAY,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACzC,CAAC,CAAC;IAEF,KAAK,CAAC,UAAU,CAAC,CAAC;IAElB,OAAO,sBAAsB,CAAC;AAClC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export * from "./Prompt.js";
2
+ export * from "./Prompt.Types.js";
3
+ export * from "./SetupCommand.Types.js";
4
+ export * from "./TsConfig.js";
5
+ export * from "./TsConfig.Types.js";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../Source/Setup/index.ts"],"names":[],"mappings":"AAMA,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,11 @@
1
+ /* File: index.ts
2
+ * Author: Gage Sorrell <gage@sorrell.sh>
3
+ * Copyright: (c) 2026 Gage Sorrell
4
+ * License: MIT
5
+ */
6
+ export * from "./Prompt.js";
7
+ export * from "./Prompt.Types.js";
8
+ export * from "./SetupCommand.Types.js";
9
+ export * from "./TsConfig.js";
10
+ export * from "./TsConfig.Types.js";
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../Source/Setup/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC"}
@@ -1,122 +1,8 @@
1
1
  #!/usr/bin/env node
2
+ export {};
2
3
  /* File: Setup.ts
3
4
  * Author: Gage Sorrell <gage@sorrell.sh>
4
5
  * Copyright: (c) 2026 Gage Sorrell
5
6
  * License: MIT
6
7
  */
7
- /* eslint-disable no-console */
8
- import { GetPackageRootDirectory, GetSafeNewPath, TryAsync } from "@sorrell/utilities";
9
- import { GoBackChoice, PromptModule, SelectInterfacesFromModule } from "./Select.js";
10
- import { basename, resolve } from "path";
11
- import { Code } from "@sorrell/cli-utilities";
12
- import { Command } from "commander";
13
- import { RunCommand } from "./Shared.js";
14
- import ora from "ora";
15
- import { writeFile } from "fs/promises";
16
- function GetEmptyCliConfig() {
17
- return {
18
- main: {
19
- name: "",
20
- path: ""
21
- },
22
- outPath: "",
23
- renderer: {
24
- name: "",
25
- path: ""
26
- }
27
- };
28
- }
29
- async function WriteCliConfig(FileName, CliConfig) {
30
- const ThisOra = ora({
31
- text: `Writing ${Code(FileName)} to your package's root directory...`
32
- }).start();
33
- const RootDirectory = await GetPackageRootDirectory();
34
- const ConfigPathBase = resolve(RootDirectory, FileName);
35
- const ConfigPath = await GetSafeNewPath(ConfigPathBase);
36
- const ConfigContents = JSON.stringify(CliConfig, null, 4);
37
- const { Error } = await TryAsync(writeFile(ConfigPath, ConfigContents));
38
- const ConfigPathFileName = basename(ConfigPath);
39
- if (Error === undefined) {
40
- /* eslint-disable-next-line @stylistic/max-len */
41
- ThisOra.succeed(`The file ${Code(ConfigPath)} was written successfully!`);
42
- console.log(`Please open the file and fill out its fields to use the ${Code("register")} command.`);
43
- }
44
- else {
45
- /* eslint-disable-next-line @stylistic/max-len */
46
- ThisOra.fail(`The file ${Code(ConfigPathFileName)} could not be written in ${Code(RootDirectory)}. Here is the error:`);
47
- console.error(JSON.stringify(Error, null, 4) + "\n");
48
- }
49
- }
50
- async function SetupInteractive() {
51
- let SelectedModule = undefined;
52
- let SelectedInterfaces = undefined;
53
- const HasSelectedEverything = (InInterfaces) => {
54
- return (InInterfaces?.Main !== undefined &&
55
- InInterfaces?.Renderer !== undefined &&
56
- InInterfaces?.Main !== GoBackChoice &&
57
- InInterfaces?.Renderer !== GoBackChoice);
58
- };
59
- while (!HasSelectedEverything(SelectedInterfaces)) {
60
- const ThisSelectedModule = await PromptModule(await GetPackageRootDirectory(), SelectedInterfaces);
61
- const TheseInterfaces = await SelectInterfacesFromModule(ThisSelectedModule, SelectedInterfaces);
62
- if (TheseInterfaces.Main === undefined && TheseInterfaces.Renderer === undefined) {
63
- /* eslint-disable-next-line @stylistic/max-len */
64
- console.log(`No interfaces were found in this module that ${Code("extend IMainRegistrar")} or ${Code("IRendererRegistrar")}.\nPlease choose another module.`);
65
- }
66
- if (TheseInterfaces.Main !== undefined && TheseInterfaces.Main !== GoBackChoice) {
67
- if (SelectedInterfaces === undefined) {
68
- SelectedInterfaces =
69
- {
70
- Main: TheseInterfaces.Main,
71
- Renderer: undefined
72
- };
73
- }
74
- else {
75
- SelectedInterfaces.Main = TheseInterfaces.Main;
76
- }
77
- }
78
- if (TheseInterfaces.Renderer !== undefined && TheseInterfaces.Renderer !== GoBackChoice) {
79
- if (SelectedInterfaces === undefined) {
80
- SelectedInterfaces =
81
- {
82
- Main: undefined,
83
- Renderer: TheseInterfaces.Renderer
84
- };
85
- }
86
- else {
87
- SelectedInterfaces.Renderer = TheseInterfaces.Renderer;
88
- }
89
- }
90
- if (HasSelectedEverything(TheseInterfaces)) {
91
- SelectedModule = ThisSelectedModule;
92
- SelectedInterfaces = TheseInterfaces;
93
- }
94
- }
95
- console.log(`SelectedModule === ${SelectedModule}`);
96
- }
97
- async function SetupNoInteractive() {
98
- const DefaultName = "electron-reactive-event.json";
99
- await WriteCliConfig(DefaultName, GetEmptyCliConfig());
100
- }
101
- async function Setup() {
102
- const { interactive: IsInteractive } = this.opts();
103
- console.log(`Is Interactive: ${IsInteractive}.`);
104
- if (IsInteractive) {
105
- await SetupInteractive.call(this);
106
- return;
107
- }
108
- else {
109
- await SetupNoInteractive.call(this);
110
- return;
111
- }
112
- }
113
- async function Main() {
114
- const SetupCommand = new Command("setup")
115
- /* eslint-disable-next-line @stylistic/max-len */
116
- .description("Create the config file needed to register your event declarations automatically in your project's build step.")
117
- .option("--no-interactive", "Write an empty settings file to the root of your package.", true)
118
- .action(Setup);
119
- await RunCommand(SetupCommand);
120
- }
121
- Main();
122
8
  //# sourceMappingURL=Setup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Setup.js","sourceRoot":"","sources":["../Source/Setup.ts"],"names":[],"mappings":";AACA;;;;GAIG;AAEH,+BAA+B;AAE/B,OAAO,EAAE,uBAAuB,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AACrF,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,SAAS,iBAAiB;IAEtB,OAAO;QACH,IAAI,EACJ;YACI,IAAI,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,CAAC,CAAC;IAEnB,MAAM,UAAU,CAAC,YAAY,CAAC,CAAC;AACnC,CAAC;AAED,IAAI,EAAE,CAAC"}
1
+ {"version":3,"file":"Setup.js","sourceRoot":"","sources":["../Source/Setup.ts"],"names":[],"mappings":";;AACA;;;;GAIG"}
@@ -1,3 +1,2 @@
1
- import type { Command } from "commander";
2
- export declare function RunCommand(InCommand: Command): Promise<void>;
1
+ export declare const DefaultConfigFileName: string;
3
2
  //# sourceMappingURL=Shared.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Shared.d.ts","sourceRoot":"","sources":["../Source/Shared.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAUzC,wBAAsB,UAAU,CAAC,SAAS,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAIlE"}
1
+ {"version":3,"file":"Shared.d.ts","sourceRoot":"","sources":["../Source/Shared.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,qBAAqB,EAAE,MAA2C,CAAC"}
@@ -2,16 +2,6 @@
2
2
  * Author: Gage Sorrell <gage@sorrell.sh>
3
3
  * Copyright: (c) 2026 Gage Sorrell
4
4
  * License: MIT
5
- * Comment: Logic used for defining commands.
6
5
  */
7
- function UpdateCommand(InCommand) {
8
- return InCommand
9
- .showHelpAfterError()
10
- .helpOption("-h, --help", "Display help information")
11
- .helpCommand("help [command]", "Display help for command");
12
- }
13
- export async function RunCommand(InCommand) {
14
- const ArgumentVector = process.argv.slice(2);
15
- await UpdateCommand(InCommand).parseAsync(ArgumentVector);
16
- }
6
+ export const DefaultConfigFileName = "electron-reactive-event-cli.json";
17
7
  //# sourceMappingURL=Shared.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Shared.js","sourceRoot":"","sources":["../Source/Shared.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,SAAS,aAAa,CAAC,SAAkB;IAErC,OAAO,SAAS;SACX,kBAAkB,EAAE;SACpB,UAAU,CAAC,YAAY,EAAE,0BAA0B,CAAC;SACpD,WAAW,CAAC,gBAAgB,EAAE,0BAA0B,CAAC,CAAC;AACnE,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,SAAkB;IAE/C,MAAM,cAAc,GAA0B,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACpE,MAAM,aAAa,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;AAC9D,CAAC"}
1
+ {"version":3,"file":"Shared.js","sourceRoot":"","sources":["../Source/Shared.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAW,kCAAkC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export type FBaseInterfaceName = "IMainRegistrarBase" | "IRendererRegistrarBase";
2
+ //# sourceMappingURL=Utility.Types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Utility.Types.d.ts","sourceRoot":"","sources":["../Source/Utility.Types.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,GAAG,wBAAwB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /* File: Shared.Types.ts
2
+ * Author: Gage Sorrell <gage@sorrell.sh>
3
+ * Copyright: (c) 2026 Gage Sorrell
4
+ * License: MIT
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=Utility.Types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Utility.Types.js","sourceRoot":"","sources":["../Source/Utility.Types.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -1,2 +1,3 @@
1
- export {};
1
+ import type { Command } from "commander";
2
+ export declare function RunCommand(InCommand: Command): Promise<void>;
2
3
  //# sourceMappingURL=Utility.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Utility.d.ts","sourceRoot":"","sources":["../Source/Utility.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"Utility.d.ts","sourceRoot":"","sources":["../Source/Utility.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAUzC,wBAAsB,UAAU,CAAC,SAAS,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAIlE"}
@@ -1,2 +1,17 @@
1
- export {};
1
+ /* File: Shared.ts
2
+ * Author: Gage Sorrell <gage@sorrell.sh>
3
+ * Copyright: (c) 2026 Gage Sorrell
4
+ * License: MIT
5
+ * Comment: Logic used for defining commands.
6
+ */
7
+ function UpdateCommand(InCommand) {
8
+ return InCommand
9
+ .showHelpAfterError()
10
+ .helpOption("-h, --help", "Display help information")
11
+ .helpCommand("help [command]", "Display help for command");
12
+ }
13
+ export async function RunCommand(InCommand) {
14
+ const ArgumentVector = process.argv.slice(2);
15
+ await UpdateCommand(InCommand).parseAsync(ArgumentVector);
16
+ }
2
17
  //# sourceMappingURL=Utility.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Utility.js","sourceRoot":"","sources":["../Source/Utility.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"Utility.js","sourceRoot":"","sources":["../Source/Utility.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,SAAS,aAAa,CAAC,SAAkB;IAErC,OAAO,SAAS;SACX,kBAAkB,EAAE;SACpB,UAAU,CAAC,YAAY,EAAE,0BAA0B,CAAC;SACpD,WAAW,CAAC,gBAAgB,EAAE,0BAA0B,CAAC,CAAC;AACnE,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,SAAkB;IAE/C,MAAM,cAAc,GAA0B,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACpE,MAAM,aAAa,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;AAC9D,CAAC"}
@@ -2,8 +2,7 @@ export * from "./Initialize.Types.js";
2
2
  export * from "./Register.js";
3
3
  export * from "./Register.Types.js";
4
4
  export * from "./Schema.Types.js";
5
- export * from "./Select.js";
6
- export * from "./Select.Types.js";
7
- export * from "./Setup.js";
8
5
  export * from "./Shared.js";
6
+ export * from "./Utility.js";
7
+ export * from "./Utility.Types.js";
9
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../Source/index.ts"],"names":[],"mappings":"AAMA,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../Source/index.ts"],"names":[],"mappings":"AAMA,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC"}
@@ -7,8 +7,7 @@ export * from "./Initialize.Types.js";
7
7
  export * from "./Register.js";
8
8
  export * from "./Register.Types.js";
9
9
  export * from "./Schema.Types.js";
10
- export * from "./Select.js";
11
- export * from "./Select.Types.js";
12
- export * from "./Setup.js";
13
10
  export * from "./Shared.js";
11
+ export * from "./Utility.js";
12
+ export * from "./Utility.Types.js";
14
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../Source/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../Source/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC"}
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "bin": {
3
- "register": "./Distribution/Register.js",
4
- "setup": "./Distribution/Setup.js"
3
+ "register": "./Distribution/Register/RegisterCommandBin.js",
4
+ "setup": "./Distribution/Setup/SetupCommand.js"
5
5
  },
6
6
  "name": "electron-reactive-event-cli",
7
- "version": "1.0.39",
7
+ "version": "1.0.42",
8
8
  "description": "Helper package to integrate electron-reactive-event in your Electron- and React-based app.",
9
9
  "keywords": [
10
10
  "electron",
@@ -43,14 +43,15 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@inquirer/prompts": "^8.3.2",
46
- "@sorrell/cli-utilities": "^1.0.10",
46
+ "@sorrell/cli-utilities": "^1.0.11",
47
47
  "@sorrell/inquirer-file-selector": "^1.0.3",
48
- "@sorrell/utilities": "^1.0.18",
48
+ "@sorrell/utilities": "^1.1.6",
49
49
  "chalk": "^5.6.2",
50
50
  "cli-table3": "^0.6.5",
51
51
  "clipboardy": "^5.3.1",
52
52
  "commander": "^14.0.3",
53
53
  "ora": "^9.3.0",
54
+ "package-json-type": "^1.1.2",
54
55
  "typescript": "^6.0.2"
55
56
  }
56
57
  }