@codedrifters/configulator 0.0.112 → 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.d.mts CHANGED
@@ -1163,6 +1163,11 @@ declare class TurboRepo extends Component$1 {
1163
1163
  * This will also become an input for the build:all task cache at the root.
1164
1164
  */
1165
1165
  addGlobalEnvVar(name: string, value: string): void;
1166
+ /**
1167
+ * Sets GIT_BRANCH_NAME so root tasks (e.g. build:all) pass the current branch.
1168
+ * Value must be exactly $(...) so Projen's task runtime expands it; the shell
1169
+ * then expands ${GIT_BRANCH_NAME:-$(git rev-parse --abbrev-ref HEAD)}.
1170
+ */
1166
1171
  activateBranchNameEnvVar(): void;
1167
1172
  preSynthesize(): void;
1168
1173
  }
package/lib/index.d.ts CHANGED
@@ -1212,6 +1212,11 @@ declare class TurboRepo extends Component$1 {
1212
1212
  * This will also become an input for the build:all task cache at the root.
1213
1213
  */
1214
1214
  addGlobalEnvVar(name: string, value: string): void;
1215
+ /**
1216
+ * Sets GIT_BRANCH_NAME so root tasks (e.g. build:all) pass the current branch.
1217
+ * Value must be exactly $(...) so Projen's task runtime expands it; the shell
1218
+ * then expands ${GIT_BRANCH_NAME:-$(git rev-parse --abbrev-ref HEAD)}.
1219
+ */
1215
1220
  activateBranchNameEnvVar(): void;
1216
1221
  preSynthesize(): void;
1217
1222
  }
package/lib/index.js CHANGED
@@ -362,10 +362,15 @@ var _TurboRepo = class _TurboRepo extends import_lib2.Component {
362
362
  this.globalEnv.push(name);
363
363
  }
364
364
  }
365
+ /**
366
+ * Sets GIT_BRANCH_NAME so root tasks (e.g. build:all) pass the current branch.
367
+ * Value must be exactly $(...) so Projen's task runtime expands it; the shell
368
+ * then expands ${GIT_BRANCH_NAME:-$(git rev-parse --abbrev-ref HEAD)}.
369
+ */
365
370
  activateBranchNameEnvVar() {
366
371
  this.addGlobalEnvVar(
367
372
  "GIT_BRANCH_NAME",
368
- "${GIT_BRANCH_NAME:-$(git rev-parse --abbrev-ref HEAD)}"
373
+ '$(echo "${GIT_BRANCH_NAME:-$(git rev-parse --abbrev-ref HEAD)}")'
369
374
  );
370
375
  }
371
376
  preSynthesize() {