From 78d758c6737639fa7591a3477330fc357e62690d Mon Sep 17 00:00:00 2001 From: ZHallen122 Date: Tue, 10 Dec 2024 22:02:58 -0500 Subject: [PATCH] init context --- backend/src/build-system/context.ts | 2 +- backend/src/build-system/node/file-generate/index.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/build-system/context.ts b/backend/src/build-system/context.ts index 936fe65..cb98691 100644 --- a/backend/src/build-system/context.ts +++ b/backend/src/build-system/context.ts @@ -27,7 +27,7 @@ export class BuilderContext { private results: Map = new Map(); private handlerManager: BuildHandlerManager; public model: ModelProvider; - private virtualDirectory: VirtualDirectory; + public virtualDirectory: VirtualDirectory; constructor( private sequence: BuildSequence, diff --git a/backend/src/build-system/node/file-generate/index.ts b/backend/src/build-system/node/file-generate/index.ts index 12c7e61..446084f 100644 --- a/backend/src/build-system/node/file-generate/index.ts +++ b/backend/src/build-system/node/file-generate/index.ts @@ -12,6 +12,7 @@ export class FileGeneratorHandler { private virtualDir: VirtualDirectory; async run(context: BuilderContext, args: unknown): Promise { + this.virtualDir = context.virtualDirectory; const fileArch = args[0] as string; // change here