@codedrifters/configulator 0.0.271 → 0.0.272

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
@@ -29012,6 +29012,7 @@ var JsiiFaker = class _JsiiFaker extends Component13 {
29012
29012
 
29013
29013
  // src/projects/astro-project.ts
29014
29014
  import { SampleFile as SampleFile2 } from "projen";
29015
+ import { merge as merge3 } from "ts-deepmerge";
29015
29016
 
29016
29017
  // src/projects/monorepo-layout.ts
29017
29018
  var MONOREPO_LAYOUT = {
@@ -30205,20 +30206,27 @@ var TypeScriptProject = class extends typescript.TypeScriptProject {
30205
30206
  var AstroProject = class extends TypeScriptProject {
30206
30207
  constructor(userOptions) {
30207
30208
  const resolvedOutdir = userOptions.outdir ?? resolveAstroProjectOutdir(userOptions.packageName ?? userOptions.name);
30208
- const options = {
30209
+ const defaultOptions = {
30209
30210
  testRunner: TestRunner.VITEST,
30210
30211
  // Astro sites don't expose a library API surface — skip the
30211
30212
  // `@microsoft/api-extractor` wiring the TypeScriptProject base adds
30212
30213
  // by default. Callers can opt in with `apiExtractor: { ... }` if a
30213
30214
  // given site genuinely ships typed re-exports.
30214
30215
  apiExtractor: false,
30215
- ...userOptions,
30216
- outdir: resolvedOutdir,
30216
+ tsconfig: {
30217
+ compilerOptions: {
30218
+ declaration: false
30219
+ }
30220
+ },
30217
30221
  depsUpgradeOptions: {
30218
- ...userOptions.depsUpgradeOptions,
30219
- exclude: [...userOptions.depsUpgradeOptions?.exclude ?? [], "astro"]
30222
+ exclude: ["astro"]
30220
30223
  }
30221
30224
  };
30225
+ const merged = merge3(defaultOptions, userOptions);
30226
+ const options = {
30227
+ ...merged,
30228
+ outdir: resolvedOutdir
30229
+ };
30222
30230
  super(options);
30223
30231
  const astroVersion = options.astroVersion ?? VERSION.ASTRO_VERSION;
30224
30232
  const astroTsconfigExtends = options.astroTsconfigExtends ?? "astro/tsconfigs/strict";
@@ -30270,6 +30278,9 @@ var AstroProject = class extends TypeScriptProject {
30270
30278
  parser: "astro-eslint-parser"
30271
30279
  });
30272
30280
  this.eslint?.addLintPattern("src/**/*.astro");
30281
+ this.eslint?.addRules({
30282
+ "import/no-unresolved": ["error", { ignore: ["^astro:"] }]
30283
+ });
30273
30284
  this.gitignore.addPatterns(".astro", ".vercel", ".netlify");
30274
30285
  const turbo = TurboRepo.of(this);
30275
30286
  if (turbo?.compileTask) {
@@ -30319,7 +30330,7 @@ import {
30319
30330
  UpgradeDependenciesSchedule as UpgradeDependenciesSchedule3
30320
30331
  } from "projen/lib/javascript";
30321
30332
  import { ReleaseTrigger as ReleaseTrigger2 } from "projen/lib/release";
30322
- import { merge as merge3 } from "ts-deepmerge";
30333
+ import { merge as merge4 } from "ts-deepmerge";
30323
30334
 
30324
30335
  // src/workflows/aws-deploy-workflow.ts
30325
30336
  var import_utils11 = __toESM(require_lib());
@@ -30889,7 +30900,7 @@ var AwsCdkProject = class extends awscdk.AwsCdkTypeScriptApp {
30889
30900
  paths: [`${resolvedOutdir}/src/**`, `${resolvedOutdir}/package.json`]
30890
30901
  })
30891
30902
  };
30892
- const options = merge3(defaultOptions, userOptions);
30903
+ const options = merge4(defaultOptions, userOptions);
30893
30904
  super(options);
30894
30905
  this.addDevDeps("@types/node@catalog:");
30895
30906
  this.tsconfig?.addExclude("**/*.test.*");
@@ -30961,7 +30972,7 @@ var AwsCdkProject = class extends awscdk.AwsCdkTypeScriptApp {
30961
30972
  ]
30962
30973
  };
30963
30974
  const userResetTaskOptions = options.resetTaskOptions ?? {};
30964
- const resetTaskOptions = merge3(
30975
+ const resetTaskOptions = merge4(
30965
30976
  defaultResetTaskOptions,
30966
30977
  {
30967
30978
  ...userResetTaskOptions,
@@ -31038,7 +31049,7 @@ var StarlightProject = class extends AstroProject {
31038
31049
  new SampleFile3(this, "src/content/docs/index.mdx", {
31039
31050
  contents: DEFAULT_INDEX_MDX
31040
31051
  });
31041
- new SampleFile3(this, "src/content/config.ts", {
31052
+ new SampleFile3(this, "src/content.config.ts", {
31042
31053
  contents: DEFAULT_CONTENT_CONFIG_TS
31043
31054
  });
31044
31055
  }
@@ -31078,10 +31089,11 @@ description: Starlight-powered documentation site.
31078
31089
  Edit \`src/content/docs/index.mdx\` to replace this page.
31079
31090
  `;
31080
31091
  var DEFAULT_CONTENT_CONFIG_TS = `import { defineCollection } from "astro:content";
31092
+ import { docsLoader } from "@astrojs/starlight/loaders";
31081
31093
  import { docsSchema } from "@astrojs/starlight/schema";
31082
31094
 
31083
31095
  export const collections = {
31084
- docs: defineCollection({ schema: docsSchema() }),
31096
+ docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
31085
31097
  };
31086
31098
  `;
31087
31099