@gradientedge/cdk-utils-azure 2.40.0 → 2.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -58,7 +58,7 @@ export class CommonAzureStack extends ComponentResource {
58
58
  return _.merge({}, props, {
59
59
  extraContexts: this.config.getObject('extraContexts'),
60
60
  regionContextPath: this.config.get('regionContextPath'),
61
- stage: this.config.get('stage'),
61
+ stage: process.env.STAGE ?? this.config.get('stage'),
62
62
  stageContextPath: this.config.get('stageContextPath'),
63
63
  stageRegionContextPath: this.config.get('stageRegionContextPath'),
64
64
  }, this.determineExtraContexts(), this.determineRegionContexts(), this.determineStageContexts(), this.determineStageRegionContexts());
@@ -129,7 +129,7 @@ export class CommonAzureStack extends ComponentResource {
129
129
  */
130
130
  determineStageContexts() {
131
131
  const debug = this.config.getBoolean('debug');
132
- const stage = this.config.get('stage');
132
+ const stage = process.env.STAGE ?? this.config.get('stage');
133
133
  const stageContextPath = this.config.get('stageContextPath');
134
134
  const stageContextFilePath = path.join(appRoot.path, stageContextPath ?? 'env', `${stage}.json`);
135
135
  if (stage && isDevStage(stage)) {
@@ -159,7 +159,7 @@ export class CommonAzureStack extends ComponentResource {
159
159
  */
160
160
  determineStageRegionContexts() {
161
161
  const debug = this.config.getBoolean('debug');
162
- const stage = this.config.get('stage');
162
+ const stage = process.env.STAGE ?? this.config.get('stage');
163
163
  const location = this.config.get('location') ?? process.env.LOCATION;
164
164
  const stageRegionContextPath = this.config.get('stageRegionContextPath');
165
165
  if (!stage || !location || !stageRegionContextPath) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils-azure",
3
- "version": "2.40.0",
3
+ "version": "2.42.0",
4
4
  "description": "Azure Pulumi utilities for @gradientedge/cdk-utils",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",
@@ -14,16 +14,16 @@
14
14
  "dist/src/"
15
15
  ],
16
16
  "dependencies": {
17
- "@pulumi/archive": "0.4.0",
17
+ "@pulumi/archive": "0.5.0",
18
18
  "@pulumi/azure-native": "3.18.0",
19
- "@pulumi/azuread": "6.9.0",
20
- "@pulumi/pulumi": "3.242.0",
19
+ "@pulumi/azuread": "6.9.1",
20
+ "@pulumi/pulumi": "3.243.0",
21
21
  "@types/lodash": "4.17.24",
22
22
  "app-root-path": "3.1.0",
23
23
  "lodash": "4.18.1",
24
24
  "uuid": "14.0.0",
25
25
  "yaml": "2.9.0",
26
- "@gradientedge/cdk-utils-common": "2.5.0"
26
+ "@gradientedge/cdk-utils-common": "2.7.0"
27
27
  },
28
28
  "keywords": [
29
29
  "gradientedge",