@nu-art/build-and-install 0.204.78 → 0.204.80

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.
@@ -4,10 +4,13 @@ const ts_common_1 = require("@nu-art/ts-common");
4
4
  const params_1 = require("./core/params/params");
5
5
  const PhaseRunner_1 = require("./v2/phase-runner/PhaseRunner");
6
6
  const thunderstorm_1 = require("./v2/unit/thunderstorm");
7
+ // @ts-ignore
7
8
  const BAIScreen_UnitList_1 = require("./v2/screens/BAIScreen_UnitList");
8
9
  ts_common_1.DebugFlag.DefaultLogLevel = params_1.RuntimeParams.debug ? ts_common_1.LogLevel.Debug : ts_common_1.LogLevel.Info;
9
10
  const runner = new PhaseRunner_1.PhaseRunner('./.config/project-config-v2.ts');
10
11
  const screen = new BAIScreen_UnitList_1.BAIScreen_UnitList();
12
+ // const screen = new BAIScreen_Launch();
13
+ // screen.setWithRunningLogs(true);
11
14
  screen.setOnKillCallback(async () => await runner.killRunner());
12
15
  runner.setScreen(screen);
13
16
  if (params_1.RuntimeParams.runWithThunderstorm)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nu-art/build-and-install",
3
- "version": "0.204.78",
3
+ "version": "0.204.80",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "TacB0sS",
@@ -25,14 +25,7 @@ export declare class PhaseRunner extends BaseUnit implements UnitPhaseImplemento
25
25
  private executeImpl;
26
26
  registerUnits(units: BaseUnit | BaseUnit[]): void;
27
27
  private getUnitsForPhase;
28
- getUnits(): BaseUnit<{}, {}, {
29
- key: string;
30
- label: string;
31
- filter?: (() => boolean | Promise<boolean>) | undefined;
32
- }, {
33
- dependencyName: string;
34
- unitDependencyNames: string[];
35
- }>[];
28
+ getUnits(): BaseUnit<import("../unit/core").BaseUnit_Config, import("../unit/core").BaseUnit_RuntimeConfig>[];
36
29
  /**
37
30
  * Determines whether to run the phase.</br>
38
31
  * returns true if phase ran, false otherwise
@@ -63,6 +63,7 @@ class PhaseRunner extends core_1.BaseUnit {
63
63
  return dependencyKeys.includes(phase.key);
64
64
  }
65
65
  };
66
+ this.addToClassStack(PhaseRunner);
66
67
  this.phases = [];
67
68
  this.units = [this];
68
69
  this.project = { path: (0, tools_1.convertToFullPath)(projectPath), config: {} };
@@ -16,23 +16,9 @@ export declare const dispatcher_PhaseChange: PhaseRunnerDispatcher<PhaseRunner_O
16
16
  export interface PhaseRunner_OnUnitStatusChange {
17
17
  __onUnitStatusChange: (data: BaseUnit) => void;
18
18
  }
19
- export declare const dispatcher_UnitStatusChange: PhaseRunnerDispatcher<PhaseRunner_OnUnitStatusChange, "__onUnitStatusChange", [data: BaseUnit<{}, {}, {
20
- key: string;
21
- label: string;
22
- filter?: (() => boolean | Promise<boolean>) | undefined;
23
- }, {
24
- dependencyName: string;
25
- unitDependencyNames: string[];
26
- }>]>;
19
+ export declare const dispatcher_UnitStatusChange: PhaseRunnerDispatcher<PhaseRunner_OnUnitStatusChange, "__onUnitStatusChange", [data: BaseUnit<import("../unit/core").BaseUnit_Config, import("../unit/core").BaseUnit_RuntimeConfig>]>;
27
20
  export interface PhaseRunner_OnUnitsChange {
28
21
  __onUnitsChange: (data: BaseUnit[]) => void;
29
22
  }
30
- export declare const dispatcher_UnitChange: PhaseRunnerDispatcher<PhaseRunner_OnUnitsChange, "__onUnitsChange", [data: BaseUnit<{}, {}, {
31
- key: string;
32
- label: string;
33
- filter?: (() => boolean | Promise<boolean>) | undefined;
34
- }, {
35
- dependencyName: string;
36
- unitDependencyNames: string[];
37
- }>[]]>;
23
+ export declare const dispatcher_UnitChange: PhaseRunnerDispatcher<PhaseRunner_OnUnitsChange, "__onUnitsChange", [data: BaseUnit<import("../unit/core").BaseUnit_Config, import("../unit/core").BaseUnit_RuntimeConfig>[]]>;
38
24
  export {};
@@ -9,6 +9,8 @@ class PhaseRunnerDispatcher {
9
9
  }
10
10
  //######################### Listeners Logic #########################
11
11
  addListener(listener) {
12
+ if (this.listeners.includes(listener))
13
+ return;
12
14
  this.listeners.push(listener);
13
15
  }
14
16
  removeListener(listener) {
@@ -9,7 +9,7 @@ export declare abstract class BAIScreen<State extends {} = {}> extends ConsoleCo
9
9
  * @param {Widgets.IScreenOptions} [props] - The properties to apply to the screen widget.
10
10
  * @param {ScreenKeyBinding[]} [keyBinding] - An array of key bindings for the screen widget.
11
11
  */
12
- constructor();
12
+ constructor(logClientKey: string);
13
13
  private createLogClient;
14
14
  startLogClient: () => void;
15
15
  stopLogClient: () => void;
@@ -11,7 +11,7 @@ class BAIScreen extends ConsoleContainer_1.ConsoleContainer {
11
11
  * @param {Widgets.IScreenOptions} [props] - The properties to apply to the screen widget.
12
12
  * @param {ScreenKeyBinding[]} [keyBinding] - An array of key bindings for the screen widget.
13
13
  */
14
- constructor() {
14
+ constructor(logClientKey) {
15
15
  super('screen', { smartCSR: true, title: 'Build and Install' }, [{
16
16
  keys: ['escape', 'q', 'C-c'],
17
17
  callback: async () => await this.onKill(),
@@ -28,11 +28,11 @@ class BAIScreen extends ConsoleContainer_1.ConsoleContainer {
28
28
  };
29
29
  this.getLogs = () => this.logClient.buffers[0];
30
30
  this.setOnKillCallback = (cb) => this.onKillCallback = cb;
31
- this.createLogClient();
31
+ this.createLogClient(logClientKey);
32
32
  }
33
- createLogClient() {
33
+ createLogClient(logClientKey) {
34
34
  //Create the log client
35
- this.logClient = new ts_common_1.LogClient_MemBuffer('log-out.txt');
35
+ this.logClient = new ts_common_1.LogClient_MemBuffer(`${logClientKey}.txt`);
36
36
  //Set for terminal flag
37
37
  this.logClient.setForTerminal();
38
38
  //Set log composer to print logs with timestamps
@@ -0,0 +1,21 @@
1
+ import { BAIScreen } from './BAIScreen';
2
+ import { BaseUnit } from '../unit/core';
3
+ import { PhaseRunner_OnUnitsChange } from '../phase-runner/PhaseRunnerDispatcher';
4
+ export declare class BAIScreen_Launch extends BAIScreen implements PhaseRunner_OnUnitsChange {
5
+ private units;
6
+ private gridDimensions;
7
+ private withRunningLogs;
8
+ private gridCellWidgets;
9
+ constructor();
10
+ __onUnitsChange: (data: BaseUnit[]) => void;
11
+ protected onLogUpdated: () => void;
12
+ private updateUnits;
13
+ protected createContent(): void;
14
+ private createGridWidgets;
15
+ private calculateGridDimensions;
16
+ private getGridWidgetLabel;
17
+ protected render(): void;
18
+ private getContentForWidget;
19
+ private renderGridWidgets;
20
+ setWithRunningLogs: (val: boolean) => boolean;
21
+ }
@@ -0,0 +1,131 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BAIScreen_Launch = void 0;
4
+ const BAIScreen_1 = require("./BAIScreen");
5
+ const consts_1 = require("../phase-runner/consts");
6
+ const firebase_units_1 = require("../unit/firebase-units");
7
+ const PhaseRunnerDispatcher_1 = require("../phase-runner/PhaseRunnerDispatcher");
8
+ class BAIScreen_Launch extends BAIScreen_1.BAIScreen {
9
+ //######################### Lifecycle #########################
10
+ constructor() {
11
+ super('bai-launch');
12
+ //######################### Properties #########################
13
+ this.units = [];
14
+ this.gridDimensions = [[{ width: 1, height: 1 }]];
15
+ this.withRunningLogs = false;
16
+ //Widgets
17
+ this.gridCellWidgets = [];
18
+ this.__onUnitsChange = (data) => {
19
+ this.updateUnits();
20
+ this.createGridWidgets();
21
+ this.renderGridWidgets();
22
+ this.container.screen.render();
23
+ };
24
+ this.onLogUpdated = () => {
25
+ this.renderGridWidgets();
26
+ };
27
+ this.updateUnits = () => {
28
+ const runner = consts_1.MemKey_PhaseRunner.get();
29
+ this.units = runner.getUnits().filter(unit => {
30
+ return unit.isInstanceOf(firebase_units_1.Unit_FirebaseHostingApp) || unit.isInstanceOf(firebase_units_1.Unit_FirebaseFunctionsApp);
31
+ });
32
+ };
33
+ this.createGridWidgets = () => {
34
+ this.gridCellWidgets.forEach(widget => widget.destroy());
35
+ this.calculateGridDimensions();
36
+ let xPos = 0;
37
+ let widgetIndex = 0;
38
+ this.gridDimensions.forEach((col) => {
39
+ let yPos = 0;
40
+ col.forEach((cell) => {
41
+ const height = cell.height * 100;
42
+ const width = cell.width * 100;
43
+ const props = {
44
+ top: `${yPos}%`,
45
+ left: `${xPos}%`,
46
+ width: `${width}%`,
47
+ height: `${height}%`,
48
+ label: this.getGridWidgetLabel(widgetIndex),
49
+ border: { type: 'line' },
50
+ style: {
51
+ border: { fg: 'blue' },
52
+ },
53
+ valign: 'top',
54
+ align: 'left',
55
+ mouse: true,
56
+ };
57
+ this.gridCellWidgets.push(this.createWidget('log', props));
58
+ yPos += height; //Assuming all cells in a column have the same height
59
+ widgetIndex++;
60
+ });
61
+ xPos += col[0].width * 100; //Assuming all Cells have the same width
62
+ });
63
+ };
64
+ this.calculateGridDimensions = () => {
65
+ let n = this.units.length;
66
+ //Add 1 more window for running logs
67
+ if (this.withRunningLogs)
68
+ n++;
69
+ const grid = [];
70
+ const columns = Math.ceil(Math.sqrt(n)); // Calculate number of columns
71
+ let remainingItems = n;
72
+ for (let col = 0; col < columns; col++) {
73
+ const column = [];
74
+ const itemsInThisColumn = Math.ceil(remainingItems / (columns - col));
75
+ const height = 1 / itemsInThisColumn;
76
+ for (let row = 0; row < itemsInThisColumn; row++) {
77
+ column.push({ width: 1 / columns, height });
78
+ }
79
+ grid.push(column);
80
+ remainingItems -= itemsInThisColumn;
81
+ }
82
+ this.gridDimensions = grid;
83
+ };
84
+ this.getGridWidgetLabel = (index) => {
85
+ if (!this.withRunningLogs)
86
+ return this.units[index].config.label;
87
+ return index === this.units.length ? 'Running Logs' : this.units[index].config.label;
88
+ };
89
+ this.getContentForWidget = (widgetIndex) => {
90
+ var _a, _b;
91
+ if (!this.withRunningLogs) {
92
+ const unit = this.units[widgetIndex];
93
+ return (_a = unit.getLogs()) !== null && _a !== void 0 ? _a : `No logs for unit ${unit.config.label}`;
94
+ }
95
+ //With running logs, last index should return the running logs
96
+ if (widgetIndex === this.units.length)
97
+ return this.getLogs();
98
+ const unit = this.units[widgetIndex];
99
+ return (_b = unit.getLogs()) !== null && _b !== void 0 ? _b : `No logs for unit ${unit.config.label}`;
100
+ };
101
+ this.renderGridWidgets = () => {
102
+ this.gridCellWidgets.forEach((widget, index) => {
103
+ const scrollPosition = widget.getScroll();
104
+ const content = this.getContentForWidget(index);
105
+ widget.setContent(content);
106
+ widget.setScroll(scrollPosition);
107
+ });
108
+ };
109
+ //######################### Options #########################
110
+ this.setWithRunningLogs = (val) => this.withRunningLogs = val;
111
+ }
112
+ //######################### Content Creation #########################
113
+ createContent() {
114
+ this.updateUnits();
115
+ this.createGridWidgets();
116
+ //Start listening on dispatchers
117
+ PhaseRunnerDispatcher_1.dispatcher_UnitStatusChange.addListener(this);
118
+ PhaseRunnerDispatcher_1.dispatcher_PhaseChange.addListener(this);
119
+ PhaseRunnerDispatcher_1.dispatcher_UnitChange.addListener(this);
120
+ //Start the log client
121
+ this.startLogClient();
122
+ }
123
+ //######################### Render #########################
124
+ render() {
125
+ this.renderGridWidgets();
126
+ this.logInfo('GRID DIMENSIONS', this.gridDimensions);
127
+ this.logInfo('UNITS', this.units.map(unit => unit.config.label));
128
+ this.logInfo('RUNNER UNITS', consts_1.MemKey_PhaseRunner.get().getUnits().map(unit => unit.config.label));
129
+ }
130
+ }
131
+ exports.BAIScreen_Launch = BAIScreen_Launch;
@@ -8,10 +8,11 @@ type State = {
8
8
  };
9
9
  export declare class BAIScreen_UnitList extends BAIScreen<State> implements PhaseRunner_OnPhaseChange, PhaseRunner_OnUnitStatusChange, PhaseRunner_OnUnitsChange {
10
10
  private units;
11
- private unitWrapperWidget;
12
- private unitWidgets;
13
11
  private logWidget;
14
12
  private phaseWidget;
13
+ private unitWrapperWidget;
14
+ private unitWidgets;
15
+ constructor();
15
16
  __onPhaseChange(phase: Phase<string>): void;
16
17
  __onUnitStatusChange(unit: BaseUnit): void;
17
18
  __onUnitsChange(data: BaseUnit[]): void;
@@ -5,15 +5,16 @@ const PhaseRunnerDispatcher_1 = require("../phase-runner/PhaseRunnerDispatcher")
5
5
  const BAIScreen_1 = require("./BAIScreen");
6
6
  const consts_1 = require("../phase-runner/consts");
7
7
  class BAIScreen_UnitList extends BAIScreen_1.BAIScreen {
8
+ //######################### Lifecycle #########################
8
9
  constructor() {
9
- super(...arguments);
10
+ super('bai-unit-list');
11
+ //######################### Properties #########################
10
12
  this.units = [];
11
13
  this.unitWidgets = [];
12
14
  this.onLogUpdated = () => {
13
15
  this.renderLogs();
14
16
  };
15
17
  }
16
- //######################### Lifecycle #########################
17
18
  __onPhaseChange(phase) {
18
19
  this.setState({ currentPhaseName: phase.name });
19
20
  }
@@ -1,26 +1,28 @@
1
1
  import { Logger } from '@nu-art/ts-common';
2
2
  import { RunnerParamKey } from '../../phase-runner/RunnerParams';
3
- type Config<C> = {
3
+ export type BaseUnit_Config = {
4
4
  key: string;
5
5
  label: string;
6
6
  filter?: () => boolean | Promise<boolean>;
7
- } & C;
8
- type RuntimeConfig<C> = {
7
+ };
8
+ export type BaseUnit_RuntimeConfig = {
9
9
  dependencyName: string;
10
10
  unitDependencyNames: string[];
11
- } & C;
12
- export declare class BaseUnit<_Config extends {} = {}, _RuntimeConfig extends {} = {}, C extends Config<_Config> = Config<_Config>, RTC extends RuntimeConfig<_RuntimeConfig> = RuntimeConfig<_RuntimeConfig>> extends Logger {
11
+ };
12
+ export declare class BaseUnit<C extends BaseUnit_Config = BaseUnit_Config, RTC extends BaseUnit_RuntimeConfig = BaseUnit_RuntimeConfig> extends Logger {
13
13
  readonly config: Readonly<C>;
14
14
  readonly runtime: RTC;
15
15
  private unitStatus?;
16
16
  private logger;
17
+ private classStack;
17
18
  constructor(config: C);
18
19
  protected init(setInitialized?: boolean): Promise<void>;
19
20
  protected getRunnerParam(key: RunnerParamKey): string | undefined;
20
21
  private initLogClient;
21
22
  protected setStatus(status?: string): void;
23
+ protected addToClassStack: (cls: Function) => void;
24
+ isInstanceOf: (cls: Function) => boolean;
22
25
  getStatus(): string | undefined;
23
26
  kill(): Promise<void>;
24
27
  getLogs(): string;
25
28
  }
26
- export {};
@@ -7,11 +7,20 @@ const PhaseRunnerDispatcher_1 = require("../../phase-runner/PhaseRunnerDispatche
7
7
  class BaseUnit extends ts_common_1.Logger {
8
8
  constructor(config) {
9
9
  super(config.key);
10
+ //######################### Class Stack Logic #########################
11
+ this.addToClassStack = (cls) => {
12
+ this.classStack.add(cls.name);
13
+ };
14
+ this.isInstanceOf = (cls) => {
15
+ return this.classStack.has(cls.name);
16
+ };
10
17
  this.config = Object.freeze(config);
11
18
  this.runtime = {
12
19
  dependencyName: this.config.key,
13
20
  unitDependencyNames: [],
14
21
  };
22
+ this.classStack = new Set();
23
+ this.addToClassStack(BaseUnit);
15
24
  this.initLogClient();
16
25
  }
17
26
  async init(setInitialized = true) {
@@ -1,21 +1,20 @@
1
1
  import { Phase_Install } from '../../phase';
2
2
  import { UnitPhaseImplementor } from '../types';
3
- import { BaseUnit } from './BaseUnit';
3
+ import { BaseUnit, BaseUnit_Config, BaseUnit_RuntimeConfig } from './BaseUnit';
4
4
  import { Commando, CommandoInteractive } from '@nu-art/commando/core/cli';
5
5
  import { Cli_Basic } from '@nu-art/commando/cli/basic';
6
- type _Config<C> = {
6
+ export type Unit_Python_Config = BaseUnit_Config & {
7
7
  pathToPackage: string;
8
- } & C;
9
- type _RuntimeConfig<RTC> = {
8
+ };
9
+ export type Unit_Python_RuntimeConfig = BaseUnit_RuntimeConfig & {
10
10
  pathTo: {
11
11
  pkg: string;
12
12
  };
13
- } & RTC;
14
- export declare class Unit_Python<Config extends {} = {}, RuntimeConfig extends {} = {}, C extends _Config<Config> = _Config<Config>, RTC extends _RuntimeConfig<RuntimeConfig> = _RuntimeConfig<RuntimeConfig>> extends BaseUnit<C, RTC> implements UnitPhaseImplementor<[Phase_Install]> {
13
+ };
14
+ export declare class Unit_Python<C extends Unit_Python_Config = Unit_Python_Config, RTC extends Unit_Python_RuntimeConfig = Unit_Python_RuntimeConfig> extends BaseUnit<C, RTC> implements UnitPhaseImplementor<[Phase_Install]> {
15
15
  protected commando: CommandoInteractive & Commando & Cli_Basic;
16
16
  constructor(config: Unit_Python<C, RTC>['config']);
17
17
  protected init(): Promise<void>;
18
18
  private initCommando;
19
19
  install(): Promise<void>;
20
20
  }
21
- export {};
@@ -8,6 +8,7 @@ const basic_1 = require("@nu-art/commando/cli/basic");
8
8
  class Unit_Python extends BaseUnit_1.BaseUnit {
9
9
  constructor(config) {
10
10
  super(config);
11
+ this.addToClassStack(Unit_Python);
11
12
  this.commando = cli_1.CommandoInteractive.create(basic_1.Cli_Basic);
12
13
  }
13
14
  async init() {
@@ -1,22 +1,23 @@
1
- import { BaseUnit } from './BaseUnit';
1
+ import { BaseUnit, BaseUnit_Config, BaseUnit_RuntimeConfig } from './BaseUnit';
2
2
  import { PackageJson } from '../../../core/types';
3
3
  import { AbsolutePath, RelativePath } from '@nu-art/ts-common';
4
4
  import { Phase_CopyPackageJSON } from '../../phase';
5
5
  import { UnitPhaseImplementor } from '../types';
6
6
  declare const PackageJsonTargetKeys: readonly ["template", "root", "dist"];
7
7
  type PackageJsonTargetKey = typeof PackageJsonTargetKeys[number];
8
- type _Config<C> = {
8
+ export type Unit_Typescript_Config = BaseUnit_Config & {
9
9
  pathToPackage: RelativePath;
10
- } & C;
11
- type RTC_Unit_Typescript<RTC> = {
10
+ };
11
+ export type Unit_Typescript_RuntimeConfig = BaseUnit_RuntimeConfig & {
12
12
  pathTo: {
13
13
  pkg: AbsolutePath;
14
14
  };
15
- } & RTC;
16
- export declare class Unit_Typescript<Config extends {} = {}, RuntimeConfig extends {} = {}, C extends _Config<Config> = _Config<Config>, RTC extends RTC_Unit_Typescript<RuntimeConfig> = RTC_Unit_Typescript<RuntimeConfig>> extends BaseUnit<C, RTC> implements UnitPhaseImplementor<[Phase_CopyPackageJSON]> {
15
+ };
16
+ export declare class Unit_Typescript<C extends Unit_Typescript_Config = Unit_Typescript_Config, RTC extends Unit_Typescript_RuntimeConfig = Unit_Typescript_RuntimeConfig> extends BaseUnit<C, RTC> implements UnitPhaseImplementor<[Phase_CopyPackageJSON]> {
17
17
  readonly packageJson: {
18
18
  [k in PackageJsonTargetKey]: PackageJson;
19
19
  };
20
+ constructor(config: C);
20
21
  protected init(setInitialized?: boolean): Promise<void>;
21
22
  private loadTemplatePackageJSON;
22
23
  /**
@@ -37,9 +37,10 @@ const PackageJsonTargetKey_Root = 'root';
37
37
  const PackageJsonTargetKey_Dist = 'dist';
38
38
  const PackageJsonTargetKeys = [PackageJsonTargetKey_Template, PackageJsonTargetKey_Root, PackageJsonTargetKey_Dist];
39
39
  class Unit_Typescript extends BaseUnit_1.BaseUnit {
40
- constructor() {
41
- super(...arguments);
40
+ constructor(config) {
41
+ super(config);
42
42
  this.packageJson = {};
43
+ this.addToClassStack(Unit_Typescript);
43
44
  }
44
45
  async init(setInitialized = true) {
45
46
  var _a;
@@ -112,6 +113,12 @@ class Unit_Typescript extends BaseUnit_1.BaseUnit {
112
113
  convertPJForDist(template) {
113
114
  //Get the package params for replacing in the template package json
114
115
  const params = RunnerParams_1.MemKey_ProjectConfig.get().params;
116
+ //if main prop exists on pkg json clear the dist from its ref
117
+ if (template.main)
118
+ template.main = template.main.replace('dist/', '');
119
+ //if types prop exists on pkg json clear the dist from its ref
120
+ if (template.types)
121
+ template.types = template.types.replace('dist/', '');
115
122
  //Convert template to actual package.json
116
123
  return (0, map_project_packages_1.convertPackageJSONTemplateToPackJSON_Value)(template, (value, key) => { var _a; return (_a = params[key]) !== null && _a !== void 0 ? _a : params[value]; });
117
124
  }
@@ -1,17 +1,17 @@
1
- import { Unit_Typescript } from './Unit_Typescript';
1
+ import { Unit_Typescript, Unit_Typescript_Config, Unit_Typescript_RuntimeConfig } from './Unit_Typescript';
2
2
  import { UnitPhaseImplementor } from '../types';
3
3
  import { Phase_CheckCyclicImports, Phase_Compile, Phase_Lint, Phase_PreCompile, Phase_PrintDependencyTree, Phase_Purge } from '../../phase';
4
- type _Config<Config> = {
4
+ export type Unit_TypescriptLib_Config = Unit_Typescript_Config & {
5
5
  customTSConfig?: boolean;
6
6
  output: string;
7
- } & Config;
8
- type _RuntimeConfig<RTC> = {
7
+ };
8
+ export type Unit_TypescriptLib_RuntimeConfig = Unit_Typescript_RuntimeConfig & {
9
9
  pathTo: {
10
10
  pkg: string;
11
11
  output: string;
12
12
  };
13
- } & RTC;
14
- export declare class Unit_TypescriptLib<Config extends {} = {}, RuntimeConfig extends {} = {}, C extends _Config<Config> = _Config<Config>, RTC extends _RuntimeConfig<RuntimeConfig> = _RuntimeConfig<RuntimeConfig>> extends Unit_Typescript<C, RTC> implements UnitPhaseImplementor<[
13
+ };
14
+ export declare class Unit_TypescriptLib<C extends Unit_TypescriptLib_Config = Unit_TypescriptLib_Config, RTC extends Unit_TypescriptLib_RuntimeConfig = Unit_TypescriptLib_RuntimeConfig> extends Unit_Typescript<C, RTC> implements UnitPhaseImplementor<[
15
15
  Phase_PreCompile,
16
16
  Phase_Compile,
17
17
  Phase_PrintDependencyTree,
@@ -19,6 +19,7 @@ export declare class Unit_TypescriptLib<Config extends {} = {}, RuntimeConfig ex
19
19
  Phase_Purge,
20
20
  Phase_Lint
21
21
  ]> {
22
+ constructor(config: Unit_TypescriptLib<C, RTC>['config']);
22
23
  protected init(setInitialized?: boolean): Promise<void>;
23
24
  protected resolveTSConfig(): Promise<void>;
24
25
  protected clearOutputDir(): Promise<void>;
@@ -32,4 +33,3 @@ export declare class Unit_TypescriptLib<Config extends {} = {}, RuntimeConfig ex
32
33
  checkCyclicImports(): Promise<void>;
33
34
  lint(): Promise<void>;
34
35
  }
35
- export {};
@@ -46,6 +46,10 @@ const assetExtensions = [
46
46
  '_ts'
47
47
  ];
48
48
  class Unit_TypescriptLib extends Unit_Typescript_1.Unit_Typescript {
49
+ constructor(config) {
50
+ super(config);
51
+ this.addToClassStack(Unit_TypescriptLib);
52
+ }
49
53
  async init(setInitialized = true) {
50
54
  await super.init(false);
51
55
  this.runtime.pathTo.output = this.runtime.pathTo.pkg + `/${this.config.output}`;
@@ -1,12 +1,13 @@
1
1
  import { UnitPhaseImplementor } from '../types';
2
- import { Unit_Typescript } from './Unit_Typescript';
2
+ import { Unit_Typescript, Unit_Typescript_Config, Unit_Typescript_RuntimeConfig } from './Unit_Typescript';
3
3
  import { Phase_Install } from '../../phase';
4
4
  import { StringMap } from '@nu-art/ts-common/utils/types';
5
- type _Config<Config> = {
5
+ type Unit_TypescriptProject_Config = Unit_Typescript_Config & {
6
6
  globalPackages?: StringMap;
7
- } & Config;
8
- type _RuntimeConfig<RTC> = {} & RTC;
9
- export declare class Unit_TypescriptProject<Config extends {} = {}, RuntimeConfig extends {} = {}, C extends _Config<Config> = _Config<Config>, RTC extends _RuntimeConfig<RuntimeConfig> = _RuntimeConfig<RuntimeConfig>> extends Unit_Typescript<C, RTC> implements UnitPhaseImplementor<[Phase_Install]> {
7
+ };
8
+ type Unit_TypescriptProject_RuntimeConfig = Unit_Typescript_RuntimeConfig & {};
9
+ export declare class Unit_TypescriptProject<C extends Unit_TypescriptProject_Config = Unit_TypescriptProject_Config, RTC extends Unit_TypescriptProject_RuntimeConfig = Unit_TypescriptProject_RuntimeConfig> extends Unit_Typescript<C, RTC> implements UnitPhaseImplementor<[Phase_Install]> {
10
+ constructor(config: Unit_TypescriptProject<C>['config']);
10
11
  private installGlobals;
11
12
  private installPackages;
12
13
  install(): Promise<void>;
@@ -8,6 +8,10 @@ const nvm_1 = require("@nu-art/commando/cli/nvm");
8
8
  const pnpm_1 = require("@nu-art/commando/cli/pnpm");
9
9
  const consts_1 = require("../../phase-runner/consts");
10
10
  class Unit_TypescriptProject extends Unit_Typescript_1.Unit_Typescript {
11
+ constructor(config) {
12
+ super(config);
13
+ this.addToClassStack(Unit_TypescriptProject);
14
+ }
11
15
  //######################### Internal Logic #########################
12
16
  async installGlobals() {
13
17
  if ((!params_1.RuntimeParams.install && !params_1.RuntimeParams.installGlobals) || !this.config.globalPackages)
@@ -1,12 +1,12 @@
1
- import { Unit_TypescriptLib } from '../core';
1
+ import { Unit_TypescriptLib, Unit_TypescriptLib_Config } from '../core';
2
2
  import { UnitPhaseImplementor } from '../types';
3
3
  import { Phase_DeployBackend, Phase_Launch, Phase_ResolveConfigs } from '../../phase';
4
4
  import { FirebasePackageConfig } from '../../../core/types';
5
- type _Config<Config> = {
5
+ export type Unit_FirebaseFunctionsApp_Config = Unit_TypescriptLib_Config & {
6
6
  firebaseConfig: FirebasePackageConfig;
7
7
  sources?: string[];
8
- } & Config;
9
- export declare class Unit_FirebaseFunctionsApp<Config extends {} = {}, C extends _Config<Config> = _Config<Config>> extends Unit_TypescriptLib<C> implements UnitPhaseImplementor<[Phase_ResolveConfigs, Phase_Launch, Phase_DeployBackend]> {
8
+ };
9
+ export declare class Unit_FirebaseFunctionsApp<C extends Unit_FirebaseFunctionsApp_Config = Unit_FirebaseFunctionsApp_Config> extends Unit_TypescriptLib<C> implements UnitPhaseImplementor<[Phase_ResolveConfigs, Phase_Launch, Phase_DeployBackend]> {
10
10
  static staggerCount: number;
11
11
  private readonly PROXY_PID_LOG;
12
12
  private readonly PROXY_KILL_LOG;
@@ -14,6 +14,7 @@ export declare class Unit_FirebaseFunctionsApp<Config extends {} = {}, C extends
14
14
  private readonly EMULATOR_KILL_LOG;
15
15
  private launchCommandos;
16
16
  private listeners;
17
+ constructor(config: Unit_FirebaseFunctionsApp<C>['config']);
17
18
  resolveConfigs(): Promise<void>;
18
19
  compile(): Promise<void>;
19
20
  launch(): Promise<void>;
@@ -37,4 +38,3 @@ export declare class Unit_FirebaseFunctionsApp<Config extends {} = {}, C extends
37
38
  private printFiles;
38
39
  private deployImpl;
39
40
  }
40
- export {};
@@ -14,12 +14,13 @@ const nvm_1 = require("@nu-art/commando/cli/nvm");
14
14
  const consts_3 = require("../../phase-runner/consts");
15
15
  const CONST_VersionApp = 'version-app.json';
16
16
  class Unit_FirebaseFunctionsApp extends core_1.Unit_TypescriptLib {
17
- constructor() {
18
- super(...arguments);
17
+ constructor(config) {
18
+ super(config);
19
19
  this.PROXY_PID_LOG = '_PROXY_PID_';
20
20
  this.PROXY_KILL_LOG = '_PROXY_KILLED_';
21
21
  this.EMULATOR_PID_LOG = '_EMULATOR_PID_';
22
22
  this.EMULATOR_KILL_LOG = '_EMULATOR_KILLED_';
23
+ this.addToClassStack(Unit_FirebaseFunctionsApp);
23
24
  }
24
25
  //######################### Phase Implementations #########################
25
26
  async resolveConfigs() {
@@ -198,7 +199,7 @@ class Unit_FirebaseFunctionsApp extends core_1.Unit_TypescriptLib {
198
199
  return;
199
200
  const packageJsonConverter = (pj) => {
200
201
  var _a;
201
- const finalPJ = (0, ts_common_1.deepClone)(this.packageJson.dist);
202
+ const finalPJ = (0, ts_common_1.deepClone)(pj);
202
203
  (_a = finalPJ.dependencies) !== null && _a !== void 0 ? _a : (finalPJ.dependencies = {});
203
204
  (0, ts_common_1._keys)(finalPJ.dependencies).reduce((acc, packageName) => {
204
205
  const unit = dependencyUnits.find(unit => unit.packageJson.template.name === packageName);
@@ -1,16 +1,17 @@
1
- import { Unit_TypescriptLib } from '../core';
1
+ import { Unit_TypescriptLib, Unit_TypescriptLib_Config } from '../core';
2
2
  import { FirebasePackageConfig } from '../../../core/types';
3
3
  import { UnitPhaseImplementor } from '../types';
4
4
  import { Phase_DeployFrontend, Phase_Launch, Phase_ResolveConfigs } from '../../phase';
5
- type _Config<Config> = {
5
+ export type Unit_FirebaseHostingApp_Config = Unit_TypescriptLib_Config & {
6
6
  firebaseConfig: FirebasePackageConfig;
7
7
  sources?: string[];
8
- } & Config;
9
- export declare class Unit_FirebaseHostingApp<Config extends {} = {}, C extends _Config<Config> = _Config<Config>> extends Unit_TypescriptLib<C> implements UnitPhaseImplementor<[Phase_ResolveConfigs, Phase_Launch, Phase_DeployFrontend]> {
8
+ };
9
+ export declare class Unit_FirebaseHostingApp<C extends Unit_FirebaseHostingApp_Config = Unit_FirebaseHostingApp_Config> extends Unit_TypescriptLib<C> implements UnitPhaseImplementor<[Phase_ResolveConfigs, Phase_Launch, Phase_DeployFrontend]> {
10
10
  private readonly APP_PID_LOG;
11
11
  private readonly APP_KILL_LOG;
12
12
  private launchCommando;
13
13
  private listeners;
14
+ constructor(config: Unit_FirebaseHostingApp<C>['config']);
14
15
  resolveConfigs(): Promise<void>;
15
16
  compile(): Promise<void>;
16
17
  launch(): Promise<void>;
@@ -29,4 +30,3 @@ export declare class Unit_FirebaseHostingApp<Config extends {} = {}, C extends _
29
30
  kill(): Promise<void>;
30
31
  private deployImpl;
31
32
  }
32
- export {};
@@ -13,10 +13,11 @@ const RunnerParams_1 = require("../../phase-runner/RunnerParams");
13
13
  const cli_1 = require("@nu-art/commando/core/cli");
14
14
  const CONST_VersionApp = 'version-app.json';
15
15
  class Unit_FirebaseHostingApp extends core_1.Unit_TypescriptLib {
16
- constructor() {
17
- super(...arguments);
16
+ constructor(config) {
17
+ super(config);
18
18
  this.APP_PID_LOG = '_APP_PID_';
19
19
  this.APP_KILL_LOG = '_APP_KILLED_';
20
+ this.addToClassStack(Unit_FirebaseHostingApp);
20
21
  }
21
22
  //######################### Phase Implementations #########################
22
23
  async resolveConfigs() {
@@ -1,291 +1,171 @@
1
1
  import { BaseUnit, Unit_TypescriptLib } from './core';
2
2
  import { RelativePath } from '@nu-art/ts-common';
3
- export declare const Unit_TSCommon: Unit_TypescriptLib<{}, {}, {
4
- key: string;
5
- label: string;
3
+ export declare const Unit_TSCommon: Unit_TypescriptLib<{
4
+ key: "ts-common";
5
+ label: "TS/ts-common";
6
6
  pathToPackage: RelativePath;
7
- output: string;
7
+ output: "dist";
8
8
  filter: () => NonNullable<boolean | undefined>;
9
- }, {
10
- pathTo: {
11
- pkg: string;
12
- output: string;
13
- };
14
- }>;
15
- export declare const Unit_TSStyles: Unit_TypescriptLib<{}, {}, {
16
- key: string;
17
- label: string;
9
+ }, import("./core").Unit_TypescriptLib_RuntimeConfig>;
10
+ export declare const Unit_TSStyles: Unit_TypescriptLib<{
11
+ key: "ts-styles";
12
+ label: "TS/ts-styles";
18
13
  pathToPackage: RelativePath;
19
- output: string;
14
+ output: "dist";
20
15
  filter: () => NonNullable<boolean | undefined>;
21
- }, {
22
- pathTo: {
23
- pkg: string;
24
- output: string;
25
- };
26
- }>;
27
- export declare const Unit_GoogleServices: Unit_TypescriptLib<{}, {}, {
28
- key: string;
29
- label: string;
16
+ }, import("./core").Unit_TypescriptLib_RuntimeConfig>;
17
+ export declare const Unit_GoogleServices: Unit_TypescriptLib<{
18
+ key: "google-services";
19
+ label: "TS/google-services";
30
20
  pathToPackage: RelativePath;
31
- output: string;
21
+ output: "dist";
32
22
  filter: () => NonNullable<boolean | undefined>;
33
- }, {
34
- pathTo: {
35
- pkg: string;
36
- output: string;
37
- };
38
- }>;
39
- export declare const Unit_Commando: Unit_TypescriptLib<{}, {}, {
40
- key: string;
41
- label: string;
23
+ }, import("./core").Unit_TypescriptLib_RuntimeConfig>;
24
+ export declare const Unit_Commando: Unit_TypescriptLib<{
25
+ key: "commando";
26
+ label: "TS/commando";
42
27
  pathToPackage: RelativePath;
43
- output: string;
28
+ output: "dist";
44
29
  filter: () => NonNullable<boolean | undefined>;
45
- }, {
46
- pathTo: {
47
- pkg: string;
48
- output: string;
49
- };
50
- }>;
51
- export declare const Unit_BAI: Unit_TypescriptLib<{}, {}, {
52
- key: string;
53
- label: string;
30
+ }, import("./core").Unit_TypescriptLib_RuntimeConfig>;
31
+ export declare const Unit_BAI: Unit_TypescriptLib<{
32
+ key: "build-and-install";
33
+ label: "TS/build-and-install";
54
34
  pathToPackage: RelativePath;
55
- output: string;
35
+ output: "dist";
56
36
  filter: () => NonNullable<boolean | undefined>;
57
- }, {
58
- pathTo: {
59
- pkg: string;
60
- output: string;
61
- };
62
- }>;
63
- export declare const Unit_Firebase: Unit_TypescriptLib<{}, {}, {
64
- key: string;
65
- label: string;
37
+ }, import("./core").Unit_TypescriptLib_RuntimeConfig>;
38
+ export declare const Unit_Firebase: Unit_TypescriptLib<{
39
+ key: "firebase";
40
+ label: "TS/firebase";
66
41
  pathToPackage: RelativePath;
67
- output: string;
42
+ output: "dist";
68
43
  filter: () => NonNullable<boolean | undefined>;
69
- }, {
70
- pathTo: {
71
- pkg: string;
72
- output: string;
73
- };
74
- }>;
75
- export declare const Unit_Thunderstorm: Unit_TypescriptLib<{}, {}, {
76
- key: string;
77
- label: string;
44
+ }, import("./core").Unit_TypescriptLib_RuntimeConfig>;
45
+ export declare const Unit_Thunderstorm: Unit_TypescriptLib<{
46
+ key: "thunderstorm";
47
+ label: "TS/thunderstorm";
78
48
  pathToPackage: RelativePath;
79
- output: string;
49
+ output: "dist";
80
50
  filter: () => NonNullable<boolean | undefined>;
81
- }, {
82
- pathTo: {
83
- pkg: string;
84
- output: string;
85
- };
86
- }>;
87
- export declare const Unit_TSPDF: Unit_TypescriptLib<{}, {}, {
88
- key: string;
89
- label: string;
51
+ }, import("./core").Unit_TypescriptLib_RuntimeConfig>;
52
+ export declare const Unit_TSPDF: Unit_TypescriptLib<{
53
+ key: "ts-pdf";
54
+ label: "TS/ts-pdf";
90
55
  pathToPackage: RelativePath;
91
- output: string;
56
+ output: "dist";
92
57
  filter: () => NonNullable<boolean | undefined>;
93
- }, {
94
- pathTo: {
95
- pkg: string;
96
- output: string;
97
- };
98
- }>;
99
- export declare const Unit_Slack: Unit_TypescriptLib<{}, {}, {
100
- key: string;
101
- label: string;
58
+ }, import("./core").Unit_TypescriptLib_RuntimeConfig>;
59
+ export declare const Unit_Slack: Unit_TypescriptLib<{
60
+ key: "slack";
61
+ label: "TS/slack";
102
62
  pathToPackage: RelativePath;
103
- output: string;
63
+ output: "dist";
104
64
  filter: () => NonNullable<boolean | undefined>;
105
- }, {
106
- pathTo: {
107
- pkg: string;
108
- output: string;
109
- };
110
- }>;
111
- export declare const Unit_LiveDocs: Unit_TypescriptLib<{}, {}, {
112
- key: string;
113
- label: string;
65
+ }, import("./core").Unit_TypescriptLib_RuntimeConfig>;
66
+ export declare const Unit_LiveDocs: Unit_TypescriptLib<{
67
+ key: "live-docs";
68
+ label: "TS/live-docs";
114
69
  pathToPackage: RelativePath;
115
- output: string;
70
+ output: "dist";
116
71
  filter: () => NonNullable<boolean | undefined>;
117
- }, {
118
- pathTo: {
119
- pkg: string;
120
- output: string;
121
- };
122
- }>;
123
- export declare const Unit_UserAccount: Unit_TypescriptLib<{}, {}, {
124
- key: string;
125
- label: string;
72
+ }, import("./core").Unit_TypescriptLib_RuntimeConfig>;
73
+ export declare const Unit_UserAccount: Unit_TypescriptLib<{
74
+ key: "user-account";
75
+ label: "TS/user-account";
126
76
  pathToPackage: RelativePath;
127
- output: string;
77
+ output: "dist";
128
78
  filter: () => NonNullable<boolean | undefined>;
129
- }, {
130
- pathTo: {
131
- pkg: string;
132
- output: string;
133
- };
134
- }>;
135
- export declare const Unit_Permissions: Unit_TypescriptLib<{}, {}, {
136
- key: string;
137
- label: string;
79
+ }, import("./core").Unit_TypescriptLib_RuntimeConfig>;
80
+ export declare const Unit_Permissions: Unit_TypescriptLib<{
81
+ key: "permissions";
82
+ label: "TS/permissions";
138
83
  pathToPackage: RelativePath;
139
- output: string;
84
+ output: "dist";
140
85
  filter: () => NonNullable<boolean | undefined>;
141
- }, {
142
- pathTo: {
143
- pkg: string;
144
- output: string;
145
- };
146
- }>;
147
- export declare const Unit_TSShortUrl: Unit_TypescriptLib<{}, {}, {
148
- key: string;
149
- label: string;
86
+ }, import("./core").Unit_TypescriptLib_RuntimeConfig>;
87
+ export declare const Unit_TSShortUrl: Unit_TypescriptLib<{
88
+ key: "ts-short-url";
89
+ label: "TS/short-url";
150
90
  pathToPackage: RelativePath;
151
- output: string;
91
+ output: "dist";
152
92
  filter: () => NonNullable<boolean | undefined>;
153
- }, {
154
- pathTo: {
155
- pkg: string;
156
- output: string;
157
- };
158
- }>;
159
- export declare const Unit_DependencyViewer: Unit_TypescriptLib<{}, {}, {
160
- key: string;
161
- label: string;
93
+ }, import("./core").Unit_TypescriptLib_RuntimeConfig>;
94
+ export declare const Unit_DependencyViewer: Unit_TypescriptLib<{
95
+ key: "ts-dependency-viewer";
96
+ label: "TS/dependency-viewer";
162
97
  pathToPackage: RelativePath;
163
- output: string;
98
+ output: "dist";
164
99
  filter: () => NonNullable<boolean | undefined>;
165
- }, {
166
- pathTo: {
167
- pkg: string;
168
- output: string;
169
- };
170
- }>;
171
- export declare const Unit_FocusedObject: Unit_TypescriptLib<{}, {}, {
172
- key: string;
173
- label: string;
100
+ }, import("./core").Unit_TypescriptLib_RuntimeConfig>;
101
+ export declare const Unit_FocusedObject: Unit_TypescriptLib<{
102
+ key: "ts-focused-object";
103
+ label: "TS/focused-object";
174
104
  pathToPackage: RelativePath;
175
- output: string;
105
+ output: "dist";
176
106
  filter: () => NonNullable<boolean | undefined>;
177
- }, {
178
- pathTo: {
179
- pkg: string;
180
- output: string;
181
- };
182
- }>;
183
- export declare const Unit_Messaging: Unit_TypescriptLib<{}, {}, {
184
- key: string;
185
- label: string;
107
+ }, import("./core").Unit_TypescriptLib_RuntimeConfig>;
108
+ export declare const Unit_Messaging: Unit_TypescriptLib<{
109
+ key: "ts-messaging";
110
+ label: "TS/messaging";
186
111
  pathToPackage: RelativePath;
187
- output: string;
112
+ output: "dist";
188
113
  filter: () => NonNullable<boolean | undefined>;
189
- }, {
190
- pathTo: {
191
- pkg: string;
192
- output: string;
193
- };
194
- }>;
195
- export declare const Unit_Workspace: Unit_TypescriptLib<{}, {}, {
196
- key: string;
197
- label: string;
114
+ }, import("./core").Unit_TypescriptLib_RuntimeConfig>;
115
+ export declare const Unit_Workspace: Unit_TypescriptLib<{
116
+ key: "ts-workspace";
117
+ label: "TS/workspace";
198
118
  pathToPackage: RelativePath;
199
- output: string;
119
+ output: "dist";
200
120
  filter: () => NonNullable<boolean | undefined>;
201
- }, {
202
- pathTo: {
203
- pkg: string;
204
- output: string;
205
- };
206
- }>;
207
- export declare const Unit_PushPubSub: Unit_TypescriptLib<{}, {}, {
208
- key: string;
209
- label: string;
121
+ }, import("./core").Unit_TypescriptLib_RuntimeConfig>;
122
+ export declare const Unit_PushPubSub: Unit_TypescriptLib<{
123
+ key: "push-pub-sub";
124
+ label: "TS/push-pub-sub";
210
125
  pathToPackage: RelativePath;
211
- output: string;
126
+ output: "dist";
212
127
  filter: () => NonNullable<boolean | undefined>;
213
- }, {
214
- pathTo: {
215
- pkg: string;
216
- output: string;
217
- };
218
- }>;
219
- export declare const Unit_Jira: Unit_TypescriptLib<{}, {}, {
220
- key: string;
221
- label: string;
128
+ }, import("./core").Unit_TypescriptLib_RuntimeConfig>;
129
+ export declare const Unit_Jira: Unit_TypescriptLib<{
130
+ key: "jira";
131
+ label: "TS/jira";
222
132
  pathToPackage: RelativePath;
223
- output: string;
133
+ output: "dist";
224
134
  filter: () => NonNullable<boolean | undefined>;
225
- }, {
226
- pathTo: {
227
- pkg: string;
228
- output: string;
229
- };
230
- }>;
231
- export declare const Unit_BugReport: Unit_TypescriptLib<{}, {}, {
232
- key: string;
233
- label: string;
135
+ }, import("./core").Unit_TypescriptLib_RuntimeConfig>;
136
+ export declare const Unit_BugReport: Unit_TypescriptLib<{
137
+ key: "bug-report";
138
+ label: "TS/bug-report";
234
139
  pathToPackage: RelativePath;
235
- output: string;
140
+ output: "dist";
236
141
  filter: () => NonNullable<boolean | undefined>;
237
- }, {
238
- pathTo: {
239
- pkg: string;
240
- output: string;
241
- };
242
- }>;
243
- export declare const Unit_Github: Unit_TypescriptLib<{}, {}, {
244
- key: string;
245
- label: string;
142
+ }, import("./core").Unit_TypescriptLib_RuntimeConfig>;
143
+ export declare const Unit_Github: Unit_TypescriptLib<{
144
+ key: "github";
145
+ label: "TS/github";
246
146
  pathToPackage: RelativePath;
247
- output: string;
147
+ output: "dist";
248
148
  filter: () => NonNullable<boolean | undefined>;
249
- }, {
250
- pathTo: {
251
- pkg: string;
252
- output: string;
253
- };
254
- }>;
255
- export declare const Unit_FileUpload: Unit_TypescriptLib<{}, {}, {
256
- key: string;
257
- label: string;
149
+ }, import("./core").Unit_TypescriptLib_RuntimeConfig>;
150
+ export declare const Unit_FileUpload: Unit_TypescriptLib<{
151
+ key: "file-upload";
152
+ label: "TS/file-upload";
258
153
  pathToPackage: RelativePath;
259
- output: string;
154
+ output: "dist";
260
155
  filter: () => NonNullable<boolean | undefined>;
261
- }, {
262
- pathTo: {
263
- pkg: string;
264
- output: string;
265
- };
266
- }>;
267
- export declare const Unit_TSOpenAI: Unit_TypescriptLib<{}, {}, {
268
- key: string;
269
- label: string;
156
+ }, import("./core").Unit_TypescriptLib_RuntimeConfig>;
157
+ export declare const Unit_TSOpenAI: Unit_TypescriptLib<{
158
+ key: "ts-openai";
159
+ label: "TS/openai";
270
160
  pathToPackage: RelativePath;
271
- output: string;
161
+ output: "dist";
272
162
  filter: () => NonNullable<boolean | undefined>;
273
- }, {
274
- pathTo: {
275
- pkg: string;
276
- output: string;
277
- };
278
- }>;
279
- export declare const Unit_SchemaToTypes: Unit_TypescriptLib<{}, {}, {
280
- key: string;
281
- label: string;
163
+ }, import("./core").Unit_TypescriptLib_RuntimeConfig>;
164
+ export declare const Unit_SchemaToTypes: Unit_TypescriptLib<{
165
+ key: "schema-to-types";
166
+ label: "TS/schema-to-types";
282
167
  pathToPackage: RelativePath;
283
- output: string;
168
+ output: "dist";
284
169
  filter: () => NonNullable<boolean | undefined>;
285
- }, {
286
- pathTo: {
287
- pkg: string;
288
- output: string;
289
- };
290
- }>;
170
+ }, import("./core").Unit_TypescriptLib_RuntimeConfig>;
291
171
  export declare const allTSUnits: BaseUnit[];