@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.d.mts +5 -0
- package/lib/index.d.ts +5 -0
- package/lib/index.js +7 -2
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +7 -2
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
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() {
|
|
@@ -468,7 +473,7 @@ var AwsDeploymentConfig = class _AwsDeploymentConfig extends import_projen.Compo
|
|
|
468
473
|
this.project.tasks.tryFind("synth:silent")?.exec(`cdk synth -q --output ${this.cdkOut}`, { env: this.env });
|
|
469
474
|
};
|
|
470
475
|
this.env = {
|
|
471
|
-
GIT_BRANCH_NAME: "${GIT_BRANCH_NAME:-$(git branch --show-current)}"
|
|
476
|
+
GIT_BRANCH_NAME: '$(echo "${GIT_BRANCH_NAME:-$(git branch --show-current)}")'
|
|
472
477
|
};
|
|
473
478
|
this.projectPath = (0, import_node_path.relative)(project.root.outdir, project.outdir);
|
|
474
479
|
this.rootPath = (0, import_node_path.relative)(project.outdir, project.root.outdir);
|