diff --git a/packages/architect-core/src/index.mts b/packages/architect-core/src/index.mts index 8976f5e..5dbd205 100644 --- a/packages/architect-core/src/index.mts +++ b/packages/architect-core/src/index.mts @@ -3,6 +3,7 @@ import { Reflect } from "@dx/reflect"; import * as fs from 'node:fs/promises'; import path from 'node:path'; +import { App } from './cli/index.mts'; import { PluginRegistry } from './plugin.mts'; import { Target, TargetResolveParams } from './target.mts'; import winston from 'winston'; @@ -148,5 +149,5 @@ export class ArchitectCoreProject extends Project { }; if (import.meta.main) { - await Project.run(ArchitectCoreProject); + await App.run(ArchitectCoreProject); }; diff --git a/packages/architect-core/src/project.mts b/packages/architect-core/src/project.mts index 2ebd644..8510d85 100644 --- a/packages/architect-core/src/project.mts +++ b/packages/architect-core/src/project.mts @@ -109,10 +109,6 @@ export abstract class Project { public static decorate(model: ProjectConfig): (target: T) => void { return (target: T) => { new ProjectMetadata(model).assign(target); }; }; - - public static async run(ctor: ProjectClass): Promise { - await App.run(ctor); - }; } export class ProjectMetadata { diff --git a/packages/architect-k8s/src/index.mts b/packages/architect-k8s/src/index.mts index e9a10f5..0a62c2b 100644 --- a/packages/architect-k8s/src/index.mts +++ b/packages/architect-k8s/src/index.mts @@ -8,7 +8,7 @@ export * from './component.mts'; export * from './plugin.mts'; export * from './target.mts'; -import { Project, PluginClass } from "@perdition/architect-core"; +import { App, Project, PluginClass } from "@perdition/architect-core"; import * as components from "./components/index.mts"; import model from './../architect.json' with { type: 'json' }; @@ -26,5 +26,5 @@ export class ArchitectK8SProject extends Project { }; if (import.meta.main) { - await Project.run(ArchitectK8SProject); + await App.run(ArchitectK8SProject); };