@reddoorla/maintenance 0.26.1 → 0.27.1

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/dist/cli/bin.js CHANGED
@@ -2331,6 +2331,19 @@ var renovateConfig = {
2331
2331
  }
2332
2332
  `
2333
2333
  };
2334
+ var netlify = {
2335
+ config: "netlify",
2336
+ path: "netlify.toml",
2337
+ contents: `[build]
2338
+ command = "pnpm build"
2339
+ publish = "build/"
2340
+ functions = "functions/"
2341
+
2342
+ [build.environment]
2343
+ NODE_VERSION = "22"
2344
+ COREPACK_INTEGRITY_KEYS = "0"
2345
+ `
2346
+ };
2334
2347
  var ALL_TEMPLATES = [
2335
2348
  eslint,
2336
2349
  prettier,
@@ -2340,7 +2353,8 @@ var ALL_TEMPLATES = [
2340
2353
  svelte,
2341
2354
  ci,
2342
2355
  renovateAction,
2343
- renovateConfig
2356
+ renovateConfig,
2357
+ netlify
2344
2358
  ];
2345
2359
  function templatesByName(which) {
2346
2360
  return ALL_TEMPLATES.filter((t) => which.includes(t.config));
@@ -2548,6 +2562,10 @@ async function withRecipe(body) {
2548
2562
 
2549
2563
  // src/recipes/sync-configs.ts
2550
2564
  var GITIGNORE_CONFIG = "gitignore";
2565
+ var SVELTE_CONFIG = "svelte";
2566
+ function isSvelteConfigCompliant(contents) {
2567
+ return contents.includes("createSvelteConfig") && contents.includes("@sveltejs/adapter-netlify");
2568
+ }
2551
2569
  var ALL_CONFIG_NAMES = [
2552
2570
  "lighthouse",
2553
2571
  "eslint",
@@ -2558,7 +2576,8 @@ var ALL_CONFIG_NAMES = [
2558
2576
  "gitignore",
2559
2577
  "ci",
2560
2578
  "renovate-action",
2561
- "renovate-config"
2579
+ "renovate-config",
2580
+ "netlify"
2562
2581
  ];
2563
2582
  function isConfigName(value) {
2564
2583
  return ALL_CONFIG_NAMES.includes(value);
@@ -2574,7 +2593,11 @@ async function planTemplateDiffs(cwd, templates) {
2574
2593
  const diffs = [];
2575
2594
  for (const t of templates) {
2576
2595
  const existing = await readMaybe(join9(cwd, t.path));
2577
- if (existing !== t.contents) diffs.push(t);
2596
+ if (existing === t.contents) continue;
2597
+ if (t.config === SVELTE_CONFIG && existing !== null && isSvelteConfigCompliant(existing)) {
2598
+ continue;
2599
+ }
2600
+ diffs.push(t);
2578
2601
  }
2579
2602
  return diffs;
2580
2603
  }