From 520aadf3462af04a03c07421cff2beb9a7c00594 Mon Sep 17 00:00:00 2001 From: benstov Date: Wed, 12 Jun 2019 10:36:24 +0200 Subject: [PATCH] improvement(service): add project root to config dump --- garden-service/src/garden.ts | 2 ++ garden-service/test/unit/src/commands/get/get-config.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/garden-service/src/garden.ts b/garden-service/src/garden.ts index 3fe05368bf..bb67e1a904 100644 --- a/garden-service/src/garden.ts +++ b/garden-service/src/garden.ts @@ -704,6 +704,7 @@ export class Garden { providers: await this.resolveProviders(), variables: this.variables, moduleConfigs: sortBy(await this.resolveModuleConfigs(), "name"), + projectRoot: this.projectRoot, } } @@ -715,4 +716,5 @@ export interface ConfigDump { providers: Provider[] variables: PrimitiveMap moduleConfigs: ModuleConfig[] + projectRoot: string } diff --git a/garden-service/test/unit/src/commands/get/get-config.ts b/garden-service/test/unit/src/commands/get/get-config.ts index e18bf986e4..d98f403566 100644 --- a/garden-service/test/unit/src/commands/get/get-config.ts +++ b/garden-service/test/unit/src/commands/get/get-config.ts @@ -28,6 +28,7 @@ describe("GetConfigCommand", () => { providers, variables: garden.variables, moduleConfigs: sortBy(await garden.resolveModuleConfigs(), "name"), + projectRoot: garden.projectRoot, } expect(config).to.deep.equal(res.result)