@arkstack/console 0.12.6 → 0.12.7

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/app.d.ts CHANGED
@@ -21,7 +21,17 @@ declare class ArkstackConsoleApp<TCore extends Core> extends CliApp {
21
21
  private readonly options;
22
22
  constructor(core: TCore, options: ConsoleAppOptions);
23
23
  makeController: (name: string, opts: any) => string;
24
+ /**
25
+ * Normalize a file path by removing the current working directory from it.
26
+ *
27
+ * @param p
28
+ * @returns
29
+ */
24
30
  normalizePath: (p: string) => string;
31
+ /**
32
+ * Recursively merge defaultConfig with config from resora.config.js, giving
33
+ * precedence to resora.
34
+ */
25
35
  mergeConfig: () => void;
26
36
  }
27
37
  //#endregion
package/dist/index.d.ts CHANGED
@@ -2,12 +2,24 @@
2
2
  declare class BuildInterfaces {
3
3
  private static project;
4
4
  private static checker;
5
+ /**
6
+ * Generate configuration interfaces
7
+ *
8
+ * @param configDir
9
+ */
5
10
  static configs(configDir?: string): void;
6
11
  static tsconfig(): void;
7
12
  private static generateConfig;
8
13
  private static resolveReturnTypeAnnotation;
9
14
  private static findNamedTypeImport;
10
15
  private static renderImports;
16
+ /**
17
+ * ts-morph resolves computed keys like path.join(...) as { [x: number]: any }
18
+ * detect these by checking the type text for an index signature pattern
19
+ *
20
+ * @param type
21
+ * @returns
22
+ */
11
23
  private static isDynamicMap;
12
24
  private static resolveType;
13
25
  }
@@ -50,6 +62,11 @@ declare const BaseTCConfig: {
50
62
  interface RunConsoleOptions {
51
63
  logo?: string;
52
64
  }
65
+ /**
66
+ * Runs the console kernel, initializing the application and registering commands.
67
+ *
68
+ * @param options
69
+ */
53
70
  declare const runConsoleKernel: (options?: RunConsoleOptions) => Promise<void>;
54
71
  //#endregion
55
72
  export { BaseTCConfig, BuildInterfaces, RunConsoleOptions, TSConfig, runConsoleKernel };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkstack/console",
3
- "version": "0.12.6",
3
+ "version": "0.12.7",
4
4
  "type": "module",
5
5
  "description": "Console module for Arkstack, providing the command-line runtime and console integration layer.",
6
6
  "homepage": "https://arkstack.toneflix.net/guide/cli",
@@ -51,8 +51,8 @@
51
51
  "chalk": "^5.6.2",
52
52
  "resora": "^1.3.6",
53
53
  "ts-morph": "^28.0.0",
54
- "@arkstack/common": "^0.12.6",
55
- "@arkstack/contract": "^0.12.6"
54
+ "@arkstack/common": "^0.12.7",
55
+ "@arkstack/contract": "^0.12.7"
56
56
  },
57
57
  "scripts": {
58
58
  "build": "tsdown",