Skip to content

Commit

Permalink
improvement(service): add project root to config dump
Browse files Browse the repository at this point in the history
  • Loading branch information
benstov committed Jun 12, 2019
1 parent 23676d4 commit 520aadf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions garden-service/src/garden.ts
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@ export class Garden {
providers: await this.resolveProviders(),
variables: this.variables,
moduleConfigs: sortBy(await this.resolveModuleConfigs(), "name"),
projectRoot: this.projectRoot,
}
}

Expand All @@ -715,4 +716,5 @@ export interface ConfigDump {
providers: Provider[]
variables: PrimitiveMap
moduleConfigs: ModuleConfig[]
projectRoot: string
}
1 change: 1 addition & 0 deletions garden-service/test/unit/src/commands/get/get-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 520aadf

Please sign in to comment.