@codedrifters/configulator 0.0.313 → 0.0.315
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 +45 -9
- package/lib/index.d.ts +45 -9
- package/lib/index.js +30 -14
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +30 -14
- package/lib/index.mjs.map +1 -1
- package/package.json +5 -5
package/lib/index.mjs
CHANGED
|
@@ -27576,16 +27576,32 @@ var _TurboRepo = class _TurboRepo extends Component4 {
|
|
|
27576
27576
|
this.globalEnv.push(name);
|
|
27577
27577
|
}
|
|
27578
27578
|
}
|
|
27579
|
-
|
|
27580
|
-
|
|
27581
|
-
|
|
27582
|
-
|
|
27583
|
-
|
|
27584
|
-
|
|
27585
|
-
|
|
27586
|
-
|
|
27587
|
-
|
|
27579
|
+
activateBranchNameEnvVar(options) {
|
|
27580
|
+
const value = '$(echo "${GIT_BRANCH_NAME:-$(git rev-parse --abbrev-ref HEAD)}")';
|
|
27581
|
+
if (options === void 0) {
|
|
27582
|
+
this.project.logger.warn(
|
|
27583
|
+
"TurboRepo.activateBranchNameEnvVar() with no arguments is deprecated. It writes GIT_BRANCH_NAME to the root `globalEnv`, which forces every task in the monorepo to miss cache on every branch switch. Pass `{ tasks: [...] }` and name only the tasks that actually consume the branch (e.g. CDK synth/package) to preserve cross-branch cache hits for everything else."
|
|
27584
|
+
);
|
|
27585
|
+
this.addGlobalEnvVar("GIT_BRANCH_NAME", value);
|
|
27586
|
+
return;
|
|
27587
|
+
}
|
|
27588
|
+
const knownTaskNames = this.tasks.map((task) => task.name);
|
|
27589
|
+
const unknown = options.tasks.filter(
|
|
27590
|
+
(name) => !knownTaskNames.includes(name)
|
|
27588
27591
|
);
|
|
27592
|
+
if (unknown.length > 0) {
|
|
27593
|
+
throw new Error(
|
|
27594
|
+
`TurboRepo.activateBranchNameEnvVar: unknown task name(s) ${JSON.stringify(
|
|
27595
|
+
unknown
|
|
27596
|
+
)}. Known tasks on this TurboRepo: ${JSON.stringify(knownTaskNames)}.`
|
|
27597
|
+
);
|
|
27598
|
+
}
|
|
27599
|
+
for (const name of options.tasks) {
|
|
27600
|
+
const task = this.tasks.find((t) => t.name === name);
|
|
27601
|
+
if (task && !task.env.includes("GIT_BRANCH_NAME")) {
|
|
27602
|
+
task.env.push("GIT_BRANCH_NAME");
|
|
27603
|
+
}
|
|
27604
|
+
}
|
|
27589
27605
|
}
|
|
27590
27606
|
preSynthesize() {
|
|
27591
27607
|
let nextDependsOn = this.project.deps.all.filter((d) => d.version === "workspace:*").map((d) => [d.name, ROOT_TURBO_TASK_NAME].join("#"));
|
|
@@ -28020,13 +28036,13 @@ var VERSION = {
|
|
|
28020
28036
|
/**
|
|
28021
28037
|
* Version of Astro to pin for AstroProject scaffolding.
|
|
28022
28038
|
*/
|
|
28023
|
-
ASTRO_VERSION: "6.3.
|
|
28039
|
+
ASTRO_VERSION: "6.3.3",
|
|
28024
28040
|
/**
|
|
28025
28041
|
* CDK CLI for workflows and command line operations.
|
|
28026
28042
|
*
|
|
28027
28043
|
* CLI and lib are versioned separately, so this is the CLI version.
|
|
28028
28044
|
*/
|
|
28029
|
-
AWS_CDK_CLI_VERSION: "2.
|
|
28045
|
+
AWS_CDK_CLI_VERSION: "2.1122.0",
|
|
28030
28046
|
/**
|
|
28031
28047
|
* CDK Version to use for construct projects.
|
|
28032
28048
|
*
|
|
@@ -28049,7 +28065,7 @@ var VERSION = {
|
|
|
28049
28065
|
/**
|
|
28050
28066
|
* Version of PNPM to use in workflows at github actions.
|
|
28051
28067
|
*/
|
|
28052
|
-
PNPM_VERSION: "11.1.
|
|
28068
|
+
PNPM_VERSION: "11.1.2",
|
|
28053
28069
|
/**
|
|
28054
28070
|
* Version of Projen to use.
|
|
28055
28071
|
*/
|
|
@@ -28071,11 +28087,11 @@ var VERSION = {
|
|
|
28071
28087
|
/**
|
|
28072
28088
|
* What version of the turborepo library should we use?
|
|
28073
28089
|
*/
|
|
28074
|
-
TURBO_VERSION: "2.9.
|
|
28090
|
+
TURBO_VERSION: "2.9.14",
|
|
28075
28091
|
/**
|
|
28076
28092
|
* Version of @types/node to use across all packages (pnpm catalog).
|
|
28077
28093
|
*/
|
|
28078
|
-
TYPES_NODE_VERSION: "25.
|
|
28094
|
+
TYPES_NODE_VERSION: "25.8.0",
|
|
28079
28095
|
/**
|
|
28080
28096
|
* What version of Vite to use (pnpm override). Pinned to 5.x so Vitest 4.x
|
|
28081
28097
|
* can load config (Vite 6+/7+ are ESM-only; see issue #142). Remove override
|