@codedrifters/configulator 0.0.159 → 0.0.161

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
@@ -2721,6 +2721,16 @@ var TypeScriptProject = class extends typescript.TypeScriptProject {
2721
2721
  turbo.compileTask?.outputs.push("dist/**");
2722
2722
  turbo.compileTask?.outputs.push("lib/**");
2723
2723
  }
2724
+ const parentHasAgentConfig = userOptions.parent instanceof MonorepoProject && AgentConfig.of(userOptions.parent) !== void 0;
2725
+ if (options.agentConfig !== false) {
2726
+ const shouldEnable = typeof options.agentConfig === "object" || options.agentConfig === true || parentHasAgentConfig;
2727
+ if (shouldEnable) {
2728
+ new AgentConfig(
2729
+ this,
2730
+ typeof options.agentConfig === "object" ? options.agentConfig : {}
2731
+ );
2732
+ }
2733
+ }
2724
2734
  if (options.resetTask !== false) {
2725
2735
  const defaultResetTaskOptions = {
2726
2736
  pathsToRemove: [
@@ -3218,7 +3228,10 @@ var MonorepoProject = class extends TypeScriptAppProject {
3218
3228
  );
3219
3229
  }
3220
3230
  if (options.agentConfig) {
3221
- new AgentConfig(this, options.agentConfigOptions);
3231
+ new AgentConfig(
3232
+ this,
3233
+ typeof options.agentConfig === "object" ? options.agentConfig : {}
3234
+ );
3222
3235
  }
3223
3236
  if (this.buildWorkflow) {
3224
3237
  addBuildCompleteJob(this.buildWorkflow);