@reddoorla/maintenance 0.27.0 → 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
@@ -2562,6 +2562,10 @@ async function withRecipe(body) {
2562
2562
 
2563
2563
  // src/recipes/sync-configs.ts
2564
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
+ }
2565
2569
  var ALL_CONFIG_NAMES = [
2566
2570
  "lighthouse",
2567
2571
  "eslint",
@@ -2589,7 +2593,11 @@ async function planTemplateDiffs(cwd, templates) {
2589
2593
  const diffs = [];
2590
2594
  for (const t of templates) {
2591
2595
  const existing = await readMaybe(join9(cwd, t.path));
2592
- 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);
2593
2601
  }
2594
2602
  return diffs;
2595
2603
  }