@codedrifters/configulator 0.0.366 → 0.0.368

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
@@ -31883,6 +31883,7 @@ var BUILT_IN_BUNDLES = buildBuiltInBundles();
31883
31883
 
31884
31884
  // src/agent/bundles/scope.ts
31885
31885
  import * as path from "path";
31886
+ import { ProjenrcFile } from "projen/lib";
31886
31887
  function scopeFilePatternsToProjects(root, detected) {
31887
31888
  const patterns = /* @__PURE__ */ new Set();
31888
31889
  for (const project of detected) {
@@ -31896,6 +31897,10 @@ function scopeFilePatternsToProjects(root, detected) {
31896
31897
  const srcdir = project.srcdir ?? "src";
31897
31898
  patterns.add(prefix(rel, path.posix.join(srcdir, "**/*.ts")));
31898
31899
  }
31900
+ const projenrcTs = readProjenrcTsFile(project);
31901
+ if (projenrcTs) {
31902
+ patterns.add(prefix(rel, projenrcTs));
31903
+ }
31899
31904
  }
31900
31905
  return [...patterns].sort();
31901
31906
  }
@@ -31906,6 +31911,10 @@ function readTsconfigInclude(project) {
31906
31911
  }
31907
31912
  return tsconfig.include;
31908
31913
  }
31914
+ function readProjenrcTsFile(project) {
31915
+ const filePath = ProjenrcFile.of(project)?.filePath;
31916
+ return filePath?.endsWith(".ts") ? filePath : void 0;
31917
+ }
31909
31918
  function prefix(rel, entry) {
31910
31919
  if (!rel) {
31911
31920
  return entry;
@@ -38991,10 +39000,15 @@ var AwsCdkProject = class extends awscdk.AwsCdkTypeScriptApp {
38991
39000
  );
38992
39001
  const targetsForAutoDerive = AwsDeploymentConfig.of(this)?.awsDeploymentTargets ?? [];
38993
39002
  const deployWorkflows = options.deployWorkflows ?? Array.from(new Set(targetsForAutoDerive.map((t) => t.awsStageType))).map(
38994
- (awsStageType) => ({
38995
- awsStageType,
38996
- buildWorkflow: options.sharedBuildWorkflow
38997
- })
39003
+ (awsStageType) => {
39004
+ if (options.sharedBuildWorkflow) {
39005
+ return { awsStageType, buildWorkflow: options.sharedBuildWorkflow };
39006
+ }
39007
+ return {
39008
+ awsStageType,
39009
+ ...options.buildWorkflowOptions ? { buildWorkflowOptions: options.buildWorkflowOptions } : {}
39010
+ };
39011
+ }
38998
39012
  );
38999
39013
  deployWorkflows.forEach(
39000
39014
  (workflowOptions) => new AwsDeployWorkflow(this, workflowOptions)