Skip to content

Commit

Permalink
fix: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ohoareau committed Sep 21, 2024
1 parent 244bfb8 commit 47c1e1e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/generators/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ export default async (
regions,
defaultRegion,
format,
vars: layerVars,
}: {
regions: Record<string, layer_region_config>;
defaultRegion: string;
format: string;
vars?: Record<string, unknown>;
},
vars: Record<string, unknown>,
_: enriched_layer_config,
Expand Down Expand Up @@ -40,7 +38,7 @@ export default async (
rsuffix: '',
rsuffix_explicit: '',
};
vars = {...vars, ...layerVars, ...defaultVars};
vars = {...vars, ...defaultVars};
return [
[
`terraform.tf`,
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export type enriched_layer_config = {
regions?: Record<string, layer_region_config>;
format?: string;
version?: string;
vars?: Record<string, unknown>;
};

export type loggable = {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/generateEnvLayerFromFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const generateEnvLayerFromFile = async (
defaultRegion,
format,
},
vars,
{...vars, ...(layerConfig.vars || {})},
layerConfig,
);

Expand Down

0 comments on commit 47c1e1e

Please sign in to comment.