@codedrifters/configulator 0.0.96 → 0.0.98
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 -5
- package/lib/index.d.ts +5 -5
- package/lib/index.js +26 -6
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +26 -6
- package/lib/index.mjs.map +1 -1
- package/package.json +4 -4
package/lib/index.d.mts
CHANGED
|
@@ -372,13 +372,13 @@ declare const VERSION: {
|
|
|
372
372
|
*
|
|
373
373
|
* CLI and lib are versioned separately, so this is the CLI version.
|
|
374
374
|
*/
|
|
375
|
-
readonly AWS_CDK_CLI_VERSION: "2.
|
|
375
|
+
readonly AWS_CDK_CLI_VERSION: "2.1106.0";
|
|
376
376
|
/**
|
|
377
377
|
* CDK Version to use for construct projects.
|
|
378
378
|
*
|
|
379
379
|
* CLI and lib are versioned separately, so this is the lib version.
|
|
380
380
|
*/
|
|
381
|
-
readonly AWS_CDK_LIB_VERSION: "2.
|
|
381
|
+
readonly AWS_CDK_LIB_VERSION: "2.238.0";
|
|
382
382
|
/**
|
|
383
383
|
* Version of the AWS Constructs library to use.
|
|
384
384
|
*/
|
|
@@ -390,15 +390,15 @@ declare const VERSION: {
|
|
|
390
390
|
/**
|
|
391
391
|
* Version of PNPM to use in workflows at github actions.
|
|
392
392
|
*/
|
|
393
|
-
readonly PNPM_VERSION: "10.
|
|
393
|
+
readonly PNPM_VERSION: "10.29.3";
|
|
394
394
|
/**
|
|
395
395
|
* Version of Projen to use.
|
|
396
396
|
*/
|
|
397
|
-
readonly PROJEN_VERSION: "0.99.
|
|
397
|
+
readonly PROJEN_VERSION: "0.99.12";
|
|
398
398
|
/**
|
|
399
399
|
* What version of the turborepo library should we use?
|
|
400
400
|
*/
|
|
401
|
-
readonly TURBO_VERSION: "2.8.
|
|
401
|
+
readonly TURBO_VERSION: "2.8.7";
|
|
402
402
|
};
|
|
403
403
|
|
|
404
404
|
/**
|
package/lib/index.d.ts
CHANGED
|
@@ -421,13 +421,13 @@ declare const VERSION: {
|
|
|
421
421
|
*
|
|
422
422
|
* CLI and lib are versioned separately, so this is the CLI version.
|
|
423
423
|
*/
|
|
424
|
-
readonly AWS_CDK_CLI_VERSION: "2.
|
|
424
|
+
readonly AWS_CDK_CLI_VERSION: "2.1106.0";
|
|
425
425
|
/**
|
|
426
426
|
* CDK Version to use for construct projects.
|
|
427
427
|
*
|
|
428
428
|
* CLI and lib are versioned separately, so this is the lib version.
|
|
429
429
|
*/
|
|
430
|
-
readonly AWS_CDK_LIB_VERSION: "2.
|
|
430
|
+
readonly AWS_CDK_LIB_VERSION: "2.238.0";
|
|
431
431
|
/**
|
|
432
432
|
* Version of the AWS Constructs library to use.
|
|
433
433
|
*/
|
|
@@ -439,15 +439,15 @@ declare const VERSION: {
|
|
|
439
439
|
/**
|
|
440
440
|
* Version of PNPM to use in workflows at github actions.
|
|
441
441
|
*/
|
|
442
|
-
readonly PNPM_VERSION: "10.
|
|
442
|
+
readonly PNPM_VERSION: "10.29.3";
|
|
443
443
|
/**
|
|
444
444
|
* Version of Projen to use.
|
|
445
445
|
*/
|
|
446
|
-
readonly PROJEN_VERSION: "0.99.
|
|
446
|
+
readonly PROJEN_VERSION: "0.99.12";
|
|
447
447
|
/**
|
|
448
448
|
* What version of the turborepo library should we use?
|
|
449
449
|
*/
|
|
450
|
-
readonly TURBO_VERSION: "2.8.
|
|
450
|
+
readonly TURBO_VERSION: "2.8.7";
|
|
451
451
|
};
|
|
452
452
|
|
|
453
453
|
/**
|
package/lib/index.js
CHANGED
|
@@ -363,7 +363,10 @@ var _TurboRepo = class _TurboRepo extends import_lib2.Component {
|
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
activateBranchNameEnvVar() {
|
|
366
|
-
this.addGlobalEnvVar(
|
|
366
|
+
this.addGlobalEnvVar(
|
|
367
|
+
"BRANCH_NAME",
|
|
368
|
+
"${BRANCH_NAME:-$(git rev-parse --abbrev-ref HEAD)}"
|
|
369
|
+
);
|
|
367
370
|
}
|
|
368
371
|
preSynthesize() {
|
|
369
372
|
let nextDependsOn = this.project.deps.all.filter((d) => d.version === "workspace:*").map((d) => [d.name, ROOT_TURBO_TASK_NAME].join("#"));
|
|
@@ -420,6 +423,9 @@ var _TurboRepo = class _TurboRepo extends import_lib2.Component {
|
|
|
420
423
|
};
|
|
421
424
|
_TurboRepo.buildWorkflowOptions = (remoteCacheOptions) => {
|
|
422
425
|
return {
|
|
426
|
+
env: {
|
|
427
|
+
BRANCH_NAME: "${{ github.head_ref || github.ref_name }}"
|
|
428
|
+
},
|
|
423
429
|
permissions: {
|
|
424
430
|
contents: import_workflows_model.JobPermission.WRITE,
|
|
425
431
|
idToken: import_workflows_model.JobPermission.WRITE
|
|
@@ -770,13 +776,13 @@ var VERSION = {
|
|
|
770
776
|
*
|
|
771
777
|
* CLI and lib are versioned separately, so this is the CLI version.
|
|
772
778
|
*/
|
|
773
|
-
AWS_CDK_CLI_VERSION: "2.
|
|
779
|
+
AWS_CDK_CLI_VERSION: "2.1106.0",
|
|
774
780
|
/**
|
|
775
781
|
* CDK Version to use for construct projects.
|
|
776
782
|
*
|
|
777
783
|
* CLI and lib are versioned separately, so this is the lib version.
|
|
778
784
|
*/
|
|
779
|
-
AWS_CDK_LIB_VERSION: "2.
|
|
785
|
+
AWS_CDK_LIB_VERSION: "2.238.0",
|
|
780
786
|
/**
|
|
781
787
|
* Version of the AWS Constructs library to use.
|
|
782
788
|
*/
|
|
@@ -788,15 +794,15 @@ var VERSION = {
|
|
|
788
794
|
/**
|
|
789
795
|
* Version of PNPM to use in workflows at github actions.
|
|
790
796
|
*/
|
|
791
|
-
PNPM_VERSION: "10.
|
|
797
|
+
PNPM_VERSION: "10.29.3",
|
|
792
798
|
/**
|
|
793
799
|
* Version of Projen to use.
|
|
794
800
|
*/
|
|
795
|
-
PROJEN_VERSION: "0.99.
|
|
801
|
+
PROJEN_VERSION: "0.99.12",
|
|
796
802
|
/**
|
|
797
803
|
* What version of the turborepo library should we use?
|
|
798
804
|
*/
|
|
799
|
-
TURBO_VERSION: "2.8.
|
|
805
|
+
TURBO_VERSION: "2.8.7"
|
|
800
806
|
};
|
|
801
807
|
|
|
802
808
|
// src/jsii/jsii-faker.ts
|
|
@@ -1324,8 +1330,14 @@ var MonorepoProject = class extends import_typescript.TypeScriptAppProject {
|
|
|
1324
1330
|
packageManager: import_javascript2.NodePackageManager.PNPM,
|
|
1325
1331
|
/**
|
|
1326
1332
|
* Some additional pre-build steps if we're using turbo's remote cache.
|
|
1333
|
+
* Set BRANCH_NAME so Turborepo remote cache hashes match between local and CI.
|
|
1327
1334
|
*/
|
|
1328
1335
|
buildWorkflowOptions: {
|
|
1336
|
+
env: {
|
|
1337
|
+
BRANCH_NAME: "${{ github.head_ref || github.ref_name }}",
|
|
1338
|
+
...buildWorkflowOptions?.env,
|
|
1339
|
+
...userOptions.buildWorkflowOptions?.env
|
|
1340
|
+
},
|
|
1329
1341
|
permissions: {
|
|
1330
1342
|
...buildWorkflowOptions?.permissions,
|
|
1331
1343
|
...userOptions.buildWorkflowOptions?.permissions
|
|
@@ -1630,6 +1642,14 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends import_projen9.Componen
|
|
|
1630
1642
|
* Do this pre-merge of permissions and build steps
|
|
1631
1643
|
*/
|
|
1632
1644
|
...options.buildWorkflowOptions,
|
|
1645
|
+
/**
|
|
1646
|
+
* Set BRANCH_NAME so Turborepo remote cache hashes match between local and CI.
|
|
1647
|
+
*/
|
|
1648
|
+
env: {
|
|
1649
|
+
BRANCH_NAME: "${{ github.head_ref || github.ref_name }}",
|
|
1650
|
+
...options.buildWorkflowOptions?.env,
|
|
1651
|
+
...buildWorkflowOptions?.env
|
|
1652
|
+
},
|
|
1633
1653
|
/**
|
|
1634
1654
|
* Some additional permissions may be required when turbo's involved.
|
|
1635
1655
|
*/
|