@codedrifters/configulator 0.0.122 → 0.0.124

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
@@ -394,11 +394,11 @@ declare const VERSION: {
394
394
  /**
395
395
  * Version of Projen to use.
396
396
  */
397
- readonly PROJEN_VERSION: "0.99.18";
397
+ readonly PROJEN_VERSION: "0.99.19";
398
398
  /**
399
399
  * What version of the turborepo library should we use?
400
400
  */
401
- readonly TURBO_VERSION: "2.8.13";
401
+ readonly TURBO_VERSION: "2.8.14";
402
402
  /**
403
403
  * What version of Vitest to use when testRunner is 'vitest'.
404
404
  */
package/lib/index.d.ts CHANGED
@@ -443,11 +443,11 @@ declare const VERSION: {
443
443
  /**
444
444
  * Version of Projen to use.
445
445
  */
446
- readonly PROJEN_VERSION: "0.99.18";
446
+ readonly PROJEN_VERSION: "0.99.19";
447
447
  /**
448
448
  * What version of the turborepo library should we use?
449
449
  */
450
- readonly TURBO_VERSION: "2.8.13";
450
+ readonly TURBO_VERSION: "2.8.14";
451
451
  /**
452
452
  * What version of Vitest to use when testRunner is 'vitest'.
453
453
  */
package/lib/index.js CHANGED
@@ -276,9 +276,11 @@ var _TurboRepo = class _TurboRepo extends import_lib2.Component {
276
276
  this.envMode = options.envMode ?? "strict";
277
277
  this.remoteCacheOptions = options.remoteCacheOptions;
278
278
  this.buildAllTaskEnvVars = options.buildAllTaskEnvVars ?? {};
279
+ const rootGeneratedFiles = this.isRootProject ? this.project.components.filter((c) => c instanceof import_lib2.FileBase).map((c) => c.path) : [];
279
280
  this.buildTask = new TurboRepoTask(this.project, {
280
281
  name: ROOT_TURBO_TASK_NAME,
281
- dependsOn: this.isRootProject ? [`^${ROOT_TURBO_TASK_NAME}`] : []
282
+ dependsOn: this.isRootProject ? [`^${ROOT_TURBO_TASK_NAME}`] : [],
283
+ ...rootGeneratedFiles.length > 0 && { inputs: rootGeneratedFiles }
282
284
  });
283
285
  if (this.isRootProject) {
284
286
  this.buildAllTask = this.project.tasks.addTask(ROOT_CI_TASK_NAME, {
@@ -808,11 +810,11 @@ var VERSION = {
808
810
  /**
809
811
  * Version of Projen to use.
810
812
  */
811
- PROJEN_VERSION: "0.99.18",
813
+ PROJEN_VERSION: "0.99.19",
812
814
  /**
813
815
  * What version of the turborepo library should we use?
814
816
  */
815
- TURBO_VERSION: "2.8.13",
817
+ TURBO_VERSION: "2.8.14",
816
818
  /**
817
819
  * What version of Vitest to use when testRunner is 'vitest'.
818
820
  */
@@ -1490,10 +1492,22 @@ var MonorepoProject = class extends import_typescript.TypeScriptAppProject {
1490
1492
  new PnpmWorkspace(this, options.pnpmOptions?.pnpmWorkspaceOptions);
1491
1493
  if (options.turbo) {
1492
1494
  new TurboRepo(this, options.turboOptions);
1493
- this.buildWorkflow?.addPostBuildSteps({
1494
- name: "Build Sub Projects",
1495
- run: `npx projen ${ROOT_CI_TASK_NAME}`
1496
- });
1495
+ this.buildWorkflow?.addPostBuildSteps(
1496
+ {
1497
+ name: "Build Sub Projects",
1498
+ run: `npx projen ${ROOT_CI_TASK_NAME}`
1499
+ },
1500
+ {
1501
+ name: "Upload Turbo runs",
1502
+ if: "always()",
1503
+ uses: "actions/upload-artifact@v4.6.2",
1504
+ with: {
1505
+ name: "turbo-runs",
1506
+ path: ".turbo/runs"
1507
+ },
1508
+ continueOnError: true
1509
+ }
1510
+ );
1497
1511
  }
1498
1512
  if (options.resetTask !== false) {
1499
1513
  const defaultResetTaskOptions = {
@@ -1843,10 +1857,22 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends import_projen10.Compone
1843
1857
  }
1844
1858
  preSynthesize() {
1845
1859
  if (!this.externalWorkflow && TurboRepo.of(this.rootProject)) {
1846
- this.buildWorkflow.addPostBuildSteps({
1847
- name: "Build Sub Projects",
1848
- run: `npx projen ${ROOT_CI_TASK_NAME}`
1849
- });
1860
+ this.buildWorkflow.addPostBuildSteps(
1861
+ {
1862
+ name: "Build Sub Projects",
1863
+ run: `npx projen ${ROOT_CI_TASK_NAME}`
1864
+ },
1865
+ {
1866
+ name: "Upload Turbo runs",
1867
+ if: "always()",
1868
+ uses: "actions/upload-artifact@v4.6.2",
1869
+ with: {
1870
+ name: "turbo-runs",
1871
+ path: ".turbo/runs"
1872
+ },
1873
+ continueOnError: true
1874
+ }
1875
+ );
1850
1876
  }
1851
1877
  super.preSynthesize();
1852
1878
  }