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