@codedrifters/configulator 0.0.241 → 0.0.242

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
@@ -16451,6 +16451,9 @@ function resolveOutdirFromPackageName(packageName, root) {
16451
16451
  function resolveTypeScriptProjectOutdir(packageName) {
16452
16452
  return resolveOutdirFromPackageName(packageName, MONOREPO_LAYOUT.PACKAGES);
16453
16453
  }
16454
+ function resolveAwsCdkProjectOutdir(packageName) {
16455
+ return resolveOutdirFromPackageName(packageName, MONOREPO_LAYOUT.APPS);
16456
+ }
16454
16457
 
16455
16458
  // src/projects/typescript-project.ts
16456
16459
  var TestRunner = {
@@ -17233,10 +17236,17 @@ var AwsCdkProject = class extends awscdk.AwsCdkTypeScriptApp {
17233
17236
  const parent = userOptions.parent;
17234
17237
  const pnpmVersion = parent.pnpmVersion;
17235
17238
  const pnpmWorkspace = PnpmWorkspace.of(parent);
17239
+ const resolvedOutdir = userOptions.outdir ?? resolveAwsCdkProjectOutdir(userOptions.packageName ?? userOptions.name);
17236
17240
  const testRunner = userOptions.testRunner ?? TestRunner.JEST;
17237
17241
  const useJest = testRunner === TestRunner.JEST;
17238
17242
  const defaultOptions = {
17239
17243
  defaultReleaseBranch: "main",
17244
+ /**
17245
+ * Outdir defaults to `apps/<scope>/<name>` when the caller omits
17246
+ * it. Explicit overrides in `userOptions` always win via the
17247
+ * merge below.
17248
+ */
17249
+ outdir: resolvedOutdir,
17240
17250
  /**
17241
17251
  * Enable reset task by default.
17242
17252
  */
@@ -17306,10 +17316,7 @@ var AwsCdkProject = class extends awscdk.AwsCdkTypeScriptApp {
17306
17316
  * Only release when the package source content or package.json changes.
17307
17317
  */
17308
17318
  releaseTrigger: ReleaseTrigger2.continuous({
17309
- paths: [
17310
- `${userOptions.outdir}/src/**`,
17311
- `${userOptions.outdir}/package.json`
17312
- ]
17319
+ paths: [`${resolvedOutdir}/src/**`, `${resolvedOutdir}/package.json`]
17313
17320
  })
17314
17321
  };
17315
17322
  const options = merge3(defaultOptions, userOptions);
@@ -17599,6 +17606,7 @@ export {
17599
17606
  requirementsReviewerBundle,
17600
17607
  requirementsWriterBundle,
17601
17608
  researchPipelineBundle,
17609
+ resolveAwsCdkProjectOutdir,
17602
17610
  resolveModelAlias,
17603
17611
  resolveOutdirFromPackageName,
17604
17612
  resolveTemplateVariables,