@codedrifters/configulator 0.0.111 → 0.0.113

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.
package/lib/index.mjs CHANGED
@@ -336,10 +336,15 @@ var _TurboRepo = class _TurboRepo extends Component2 {
336
336
  this.globalEnv.push(name);
337
337
  }
338
338
  }
339
+ /**
340
+ * Sets GIT_BRANCH_NAME so root tasks (e.g. build:all) pass the current branch.
341
+ * Value must be exactly $(...) so Projen's task runtime expands it; the shell
342
+ * then expands ${GIT_BRANCH_NAME:-$(git rev-parse --abbrev-ref HEAD)}.
343
+ */
339
344
  activateBranchNameEnvVar() {
340
345
  this.addGlobalEnvVar(
341
346
  "GIT_BRANCH_NAME",
342
- "${GIT_BRANCH_NAME:-$(git rev-parse --abbrev-ref HEAD)}"
347
+ '$(echo "${GIT_BRANCH_NAME:-$(git rev-parse --abbrev-ref HEAD)}")'
343
348
  );
344
349
  }
345
350
  preSynthesize() {
@@ -442,7 +447,7 @@ var AwsDeploymentConfig = class _AwsDeploymentConfig extends Component3 {
442
447
  this.project.tasks.tryFind("synth:silent")?.exec(`cdk synth -q --output ${this.cdkOut}`, { env: this.env });
443
448
  };
444
449
  this.env = {
445
- GIT_BRANCH_NAME: "${GIT_BRANCH_NAME:-$(git branch --show-current)}"
450
+ GIT_BRANCH_NAME: '$(echo "${GIT_BRANCH_NAME:-$(git branch --show-current)}")'
446
451
  };
447
452
  this.projectPath = relative(project.root.outdir, project.outdir);
448
453
  this.rootPath = relative(project.outdir, project.root.outdir);