@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.js CHANGED
@@ -32227,6 +32227,7 @@ var BUILT_IN_BUNDLES = buildBuiltInBundles();
32227
32227
 
32228
32228
  // src/agent/bundles/scope.ts
32229
32229
  var path = __toESM(require("path"));
32230
+ var import_lib3 = require("projen/lib");
32230
32231
  function scopeFilePatternsToProjects(root, detected) {
32231
32232
  const patterns = /* @__PURE__ */ new Set();
32232
32233
  for (const project of detected) {
@@ -32240,6 +32241,10 @@ function scopeFilePatternsToProjects(root, detected) {
32240
32241
  const srcdir = project.srcdir ?? "src";
32241
32242
  patterns.add(prefix(rel, path.posix.join(srcdir, "**/*.ts")));
32242
32243
  }
32244
+ const projenrcTs = readProjenrcTsFile(project);
32245
+ if (projenrcTs) {
32246
+ patterns.add(prefix(rel, projenrcTs));
32247
+ }
32243
32248
  }
32244
32249
  return [...patterns].sort();
32245
32250
  }
@@ -32250,6 +32255,10 @@ function readTsconfigInclude(project) {
32250
32255
  }
32251
32256
  return tsconfig.include;
32252
32257
  }
32258
+ function readProjenrcTsFile(project) {
32259
+ const filePath = import_lib3.ProjenrcFile.of(project)?.filePath;
32260
+ return filePath?.endsWith(".ts") ? filePath : void 0;
32261
+ }
32253
32262
  function prefix(rel, entry) {
32254
32263
  if (!rel) {
32255
32264
  return entry;
@@ -39322,10 +39331,15 @@ var AwsCdkProject = class extends import_projen27.awscdk.AwsCdkTypeScriptApp {
39322
39331
  );
39323
39332
  const targetsForAutoDerive = AwsDeploymentConfig.of(this)?.awsDeploymentTargets ?? [];
39324
39333
  const deployWorkflows = options.deployWorkflows ?? Array.from(new Set(targetsForAutoDerive.map((t) => t.awsStageType))).map(
39325
- (awsStageType) => ({
39326
- awsStageType,
39327
- buildWorkflow: options.sharedBuildWorkflow
39328
- })
39334
+ (awsStageType) => {
39335
+ if (options.sharedBuildWorkflow) {
39336
+ return { awsStageType, buildWorkflow: options.sharedBuildWorkflow };
39337
+ }
39338
+ return {
39339
+ awsStageType,
39340
+ ...options.buildWorkflowOptions ? { buildWorkflowOptions: options.buildWorkflowOptions } : {}
39341
+ };
39342
+ }
39329
39343
  );
39330
39344
  deployWorkflows.forEach(
39331
39345
  (workflowOptions) => new AwsDeployWorkflow(this, workflowOptions)