@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.mjs CHANGED
@@ -248,9 +248,11 @@ var _TurboRepo = class _TurboRepo extends Component2 {
248
248
  this.envMode = options.envMode ?? "strict";
249
249
  this.remoteCacheOptions = options.remoteCacheOptions;
250
250
  this.buildAllTaskEnvVars = options.buildAllTaskEnvVars ?? {};
251
+ const rootGeneratedFiles = this.isRootProject ? this.project.components.filter((c) => c instanceof FileBase).map((c) => c.path) : [];
251
252
  this.buildTask = new TurboRepoTask(this.project, {
252
253
  name: ROOT_TURBO_TASK_NAME,
253
- dependsOn: this.isRootProject ? [`^${ROOT_TURBO_TASK_NAME}`] : []
254
+ dependsOn: this.isRootProject ? [`^${ROOT_TURBO_TASK_NAME}`] : [],
255
+ ...rootGeneratedFiles.length > 0 && { inputs: rootGeneratedFiles }
254
256
  });
255
257
  if (this.isRootProject) {
256
258
  this.buildAllTask = this.project.tasks.addTask(ROOT_CI_TASK_NAME, {
@@ -780,11 +782,11 @@ var VERSION = {
780
782
  /**
781
783
  * Version of Projen to use.
782
784
  */
783
- PROJEN_VERSION: "0.99.18",
785
+ PROJEN_VERSION: "0.99.19",
784
786
  /**
785
787
  * What version of the turborepo library should we use?
786
788
  */
787
- TURBO_VERSION: "2.8.13",
789
+ TURBO_VERSION: "2.8.14",
788
790
  /**
789
791
  * What version of Vitest to use when testRunner is 'vitest'.
790
792
  */
@@ -1472,10 +1474,22 @@ var MonorepoProject = class extends TypeScriptAppProject {
1472
1474
  new PnpmWorkspace(this, options.pnpmOptions?.pnpmWorkspaceOptions);
1473
1475
  if (options.turbo) {
1474
1476
  new TurboRepo(this, options.turboOptions);
1475
- this.buildWorkflow?.addPostBuildSteps({
1476
- name: "Build Sub Projects",
1477
- run: `npx projen ${ROOT_CI_TASK_NAME}`
1478
- });
1477
+ this.buildWorkflow?.addPostBuildSteps(
1478
+ {
1479
+ name: "Build Sub Projects",
1480
+ run: `npx projen ${ROOT_CI_TASK_NAME}`
1481
+ },
1482
+ {
1483
+ name: "Upload Turbo runs",
1484
+ if: "always()",
1485
+ uses: "actions/upload-artifact@v4.6.2",
1486
+ with: {
1487
+ name: "turbo-runs",
1488
+ path: ".turbo/runs"
1489
+ },
1490
+ continueOnError: true
1491
+ }
1492
+ );
1479
1493
  }
1480
1494
  if (options.resetTask !== false) {
1481
1495
  const defaultResetTaskOptions = {
@@ -1825,10 +1839,22 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends Component11 {
1825
1839
  }
1826
1840
  preSynthesize() {
1827
1841
  if (!this.externalWorkflow && TurboRepo.of(this.rootProject)) {
1828
- this.buildWorkflow.addPostBuildSteps({
1829
- name: "Build Sub Projects",
1830
- run: `npx projen ${ROOT_CI_TASK_NAME}`
1831
- });
1842
+ this.buildWorkflow.addPostBuildSteps(
1843
+ {
1844
+ name: "Build Sub Projects",
1845
+ run: `npx projen ${ROOT_CI_TASK_NAME}`
1846
+ },
1847
+ {
1848
+ name: "Upload Turbo runs",
1849
+ if: "always()",
1850
+ uses: "actions/upload-artifact@v4.6.2",
1851
+ with: {
1852
+ name: "turbo-runs",
1853
+ path: ".turbo/runs"
1854
+ },
1855
+ continueOnError: true
1856
+ }
1857
+ );
1832
1858
  }
1833
1859
  super.preSynthesize();
1834
1860
  }