@donotdev/cli 0.3.2 → 0.3.4

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.
Files changed (56) hide show
  1. package/dependencies-matrix.json +10 -10
  2. package/dist/bin/commands/agent-setup.js +1 -1
  3. package/dist/bin/commands/build.js +142 -2
  4. package/dist/bin/commands/bump.js +12 -8
  5. package/dist/bin/commands/cacheout.js +2 -1
  6. package/dist/bin/commands/coach.js +1 -1
  7. package/dist/bin/commands/create-app.js +3 -3
  8. package/dist/bin/commands/create-project.js +3 -3
  9. package/dist/bin/commands/db-check.js +1 -1
  10. package/dist/bin/commands/db.js +1 -1
  11. package/dist/bin/commands/deploy.js +12 -2
  12. package/dist/bin/commands/dev.js +1 -1
  13. package/dist/bin/commands/doctor.js +1 -1
  14. package/dist/bin/commands/emu.js +1 -1
  15. package/dist/bin/commands/format.js +1 -1
  16. package/dist/bin/commands/get-demo.js +3 -3
  17. package/dist/bin/commands/make-admin.js +12 -2
  18. package/dist/bin/commands/preview.js +1 -1
  19. package/dist/bin/commands/seed.js +1 -1
  20. package/dist/bin/commands/setup-cicd.js +12 -2
  21. package/dist/bin/commands/setup.js +1 -1
  22. package/dist/bin/commands/staging.js +12 -2
  23. package/dist/bin/commands/sync-secrets.js +1 -1
  24. package/dist/bin/commands/type-check.js +12 -2
  25. package/dist/bin/commands/wai.js +1 -1
  26. package/dist/bin/dndev.js +12 -2
  27. package/dist/index.js +147 -6
  28. package/package.json +1 -1
  29. package/templates/app-demo/index.html.example +1 -1
  30. package/templates/app-demo/src/themes.css.example +4 -4
  31. package/templates/app-dndev/index.html.example +1 -2
  32. package/templates/app-dndev/src/themes.css.example +3 -3
  33. package/templates/app-next/postcss.config.js.example +1 -1
  34. package/templates/app-next/src/app/AppDocument.tsx.example +4 -8
  35. package/templates/app-next/src/globals.css.example +4 -4
  36. package/templates/app-vite/index.html.example +1 -2
  37. package/templates/app-vite/src/themes.css.example +3 -3
  38. package/templates/overlay-supabase/env.fragment.example +4 -0
  39. package/templates/overlay-supabase/env.fragment.nextjs.example +4 -0
  40. package/templates/preset-admin/src/pages/UsersPage.tsx.example +5 -3
  41. package/templates/root-consumer/.gitignore.example +2 -0
  42. package/templates/app-demo/public/fonts/Roboto-400-cyrillic-ext.woff2.example +0 -0
  43. package/templates/app-demo/public/fonts/Roboto-400-cyrillic.woff2.example +0 -0
  44. package/templates/app-demo/public/fonts/Roboto-400-greek-ext.woff2.example +0 -0
  45. package/templates/app-demo/public/fonts/Roboto-400-greek.woff2.example +0 -0
  46. package/templates/app-demo/public/fonts/Roboto-400-latin-ext.woff2.example +0 -0
  47. package/templates/app-demo/public/fonts/Roboto-400-latin.woff2.example +0 -0
  48. package/templates/app-demo/public/fonts/Roboto-400-vietnamese.woff2.example +0 -0
  49. package/templates/app-demo/public/fonts/Roboto-700-cyrillic-ext.woff2.example +0 -0
  50. package/templates/app-demo/public/fonts/Roboto-700-cyrillic.woff2.example +0 -0
  51. package/templates/app-demo/public/fonts/Roboto-700-greek-ext.woff2.example +0 -0
  52. package/templates/app-demo/public/fonts/Roboto-700-greek.woff2.example +0 -0
  53. package/templates/app-demo/public/fonts/Roboto-700-latin-ext.woff2.example +0 -0
  54. package/templates/app-demo/public/fonts/Roboto-700-latin.woff2.example +0 -0
  55. package/templates/app-demo/public/fonts/Roboto-700-vietnamese.woff2.example +0 -0
  56. package/templates/app-demo/public/fonts/fonts.css.example +0 -144
@@ -2,7 +2,7 @@
2
2
  "$schema": "./dependencies-matrix.schema.json",
3
3
  "version": "0.0.8",
4
4
  "description": "Centralized dependency versions for DoNotDev framework. Single source of truth for all external dependencies. Third-party optional deps are auto-detected from peerDependenciesMeta via scanInstalledPackageOptionals() — no manual constants update needed.",
5
- "lastUpdated": "2026-11-21",
5
+ "lastUpdated": "2026-11-23",
6
6
  "migrationGuides": {
7
7
  "0.0→0.1": {
8
8
  "path": "docs/migration/v0.0-to-v0.1.md",
@@ -46,7 +46,7 @@
46
46
  "@donotdev/auth": {
47
47
  "description": "Authentication package",
48
48
  "packages": {
49
- "@donotdev/auth": "^0.3.2"
49
+ "@donotdev/auth": "^0.3.4"
50
50
  }
51
51
  },
52
52
  "@donotdev/billing": {
@@ -58,19 +58,19 @@
58
58
  "@donotdev/components": {
59
59
  "description": "UI components package",
60
60
  "packages": {
61
- "@donotdev/components": "^0.3.3"
61
+ "@donotdev/components": "^0.3.5"
62
62
  }
63
63
  },
64
64
  "@donotdev/core": {
65
65
  "description": "Core framework package",
66
66
  "packages": {
67
- "@donotdev/core": "^0.3.2"
67
+ "@donotdev/core": "^0.3.4"
68
68
  }
69
69
  },
70
70
  "@donotdev/crud": {
71
71
  "description": "CRUD operations package",
72
72
  "packages": {
73
- "@donotdev/crud": "^0.3.2"
73
+ "@donotdev/crud": "^0.3.4"
74
74
  }
75
75
  },
76
76
  "@donotdev/demo": {
@@ -82,13 +82,13 @@
82
82
  "@donotdev/firebase": {
83
83
  "description": "Firebase provider package",
84
84
  "packages": {
85
- "@donotdev/firebase": "^0.3.2"
85
+ "@donotdev/firebase": "^0.3.4"
86
86
  }
87
87
  },
88
88
  "@donotdev/functions": {
89
89
  "description": "Firebase Functions package",
90
90
  "packages": {
91
- "@donotdev/functions": "^0.3.2"
91
+ "@donotdev/functions": "^0.3.4"
92
92
  }
93
93
  },
94
94
  "@donotdev/oauth": {
@@ -106,7 +106,7 @@
106
106
  "@donotdev/ui": {
107
107
  "description": "UI and routing package",
108
108
  "packages": {
109
- "@donotdev/ui": "^0.3.3"
109
+ "@donotdev/ui": "^0.3.5"
110
110
  }
111
111
  },
112
112
  "@donotdev/expo": {
@@ -118,7 +118,7 @@
118
118
  "@donotdev/supabase": {
119
119
  "description": "Supabase provider package",
120
120
  "packages": {
121
- "@donotdev/supabase": "^0.3.2"
121
+ "@donotdev/supabase": "^0.3.4"
122
122
  }
123
123
  },
124
124
  "supabase-js": {
@@ -494,7 +494,7 @@
494
494
  "@donotdev/cli": {
495
495
  "description": "Cli package",
496
496
  "packages": {
497
- "@donotdev/cli": "^0.3.2"
497
+ "@donotdev/cli": "^0.3.4"
498
498
  }
499
499
  },
500
500
  "@donotdev/mcp-server": {
@@ -7916,7 +7916,7 @@ var init_type_guards = __esm({
7916
7916
 
7917
7917
  // packages/tooling/src/bundler/utils.ts
7918
7918
  import { Buffer as Buffer2 } from "node:buffer";
7919
- import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
7919
+ import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
7920
7920
  import { createRequire as createRequire3 } from "node:module";
7921
7921
  import { dirname as dirname4, resolve as resolve3 } from "node:path";
7922
7922
  import process from "node:process";
@@ -8697,7 +8697,7 @@ var init_type_guards = __esm({
8697
8697
 
8698
8698
  // packages/tooling/src/bundler/utils.ts
8699
8699
  import { Buffer as Buffer2 } from "node:buffer";
8700
- import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
8700
+ import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
8701
8701
  import { createRequire as createRequire3 } from "node:module";
8702
8702
  import { dirname as dirname4, resolve as resolve3 } from "node:path";
8703
8703
  import process from "node:process";
@@ -9285,7 +9285,11 @@ var init_command_registry = __esm({
9285
9285
  flags: "--tar",
9286
9286
  description: "Create tarballs + update test repo (no publish)"
9287
9287
  },
9288
- { flags: "--force", description: "force publish (npm publish --force)" }
9288
+ { flags: "--force", description: "force publish (npm publish --force)" },
9289
+ {
9290
+ flags: "-y, --yes",
9291
+ description: 'skip the "publish to npm?" confirmation (unattended runs)'
9292
+ }
9289
9293
  ],
9290
9294
  loader: "../bundler/bundle.ts",
9291
9295
  exportName: "bundle"
@@ -9348,6 +9352,12 @@ var init_command_registry = __esm({
9348
9352
  description: "Update framework packages and peer dependencies to latest compatible versions",
9349
9353
  category: "build",
9350
9354
  public: true,
9355
+ options: [
9356
+ {
9357
+ flags: "-y, --yes",
9358
+ description: "Accept every default answer: packages and docs, no major updates, then bun install"
9359
+ }
9360
+ ],
9351
9361
  loader: "../maintenance/bump.ts",
9352
9362
  exportName: "bump"
9353
9363
  },
@@ -12992,6 +13002,132 @@ init_utils2();
12992
13002
  init_deploy_utils();
12993
13003
  import { execSync as execSync2, spawnSync as spawnSync5 } from "node:child_process";
12994
13004
 
13005
+ // packages/tooling/src/apps/font-report.ts
13006
+ init_utils2();
13007
+ init_cli_output();
13008
+ init_pathResolver();
13009
+ var OUTPUTS = {
13010
+ nextjs: { html: [".next/server/app"], fonts: "public/fonts", bundled: [".next/static/media"] },
13011
+ vite: { html: ["dist"], fonts: "dist/fonts", bundled: ["dist/assets"] }
13012
+ };
13013
+ var NEXT_EXPORT_DIR = "out";
13014
+ var NEXT_SERVER_FILES = ".next/required-server-files.json";
13015
+ var NOT_FRAMEWORK_DOCUMENTS = /(^|\/)_global-error\.html$/;
13016
+ var FONT_STYLE_RE = /<style\b[^>]*(?:id|data-href)="dndev-fonts"[^>]*>([\s\S]*?)<\/style>/g;
13017
+ var LINK_RE = /<link\b[^>]*>/g;
13018
+ var HASHED_FONT_RE = /\/fonts\/[^/"]+\.[0-9a-f]{8}\.woff2$/;
13019
+ function attributesOf(tag) {
13020
+ const attributes = {};
13021
+ for (const [, name, value] of tag.matchAll(/\s([a-zA-Z-]+)(?:="([^"]*)")?/g)) {
13022
+ attributes[name.toLowerCase()] = value ?? "";
13023
+ }
13024
+ return attributes;
13025
+ }
13026
+ function htmlFiles(dir) {
13027
+ if (!pathExists(dir)) return [];
13028
+ const files = [];
13029
+ for (const entry of readdirSync3(dir, { withFileTypes: true })) {
13030
+ const path = joinPath(dir, entry.name);
13031
+ if (entry.isDirectory()) files.push(...htmlFiles(path));
13032
+ else if (entry.name.endsWith(".html")) files.push(path);
13033
+ }
13034
+ return files;
13035
+ }
13036
+ function woff2Files(dir) {
13037
+ if (!pathExists(dir)) return [];
13038
+ return readdirSync3(dir, { withFileTypes: true }).flatMap((entry) => {
13039
+ const path = joinPath(dir, entry.name);
13040
+ if (entry.isDirectory()) return woff2Files(path);
13041
+ return entry.name.endsWith(".woff2") ? [path] : [];
13042
+ });
13043
+ }
13044
+ function checkFontHtml(html, fontExists) {
13045
+ const problems = [];
13046
+ const headEnd = html.indexOf("</head>");
13047
+ const head = headEnd === -1 ? html : html.slice(0, headEnd);
13048
+ const styles = [...html.matchAll(FONT_STYLE_RE)];
13049
+ if (styles.length !== 1) {
13050
+ problems.push(`${styles.length} inline font styles (dndev-fonts), expected 1`);
13051
+ }
13052
+ const css = styles.map((match) => match[1]).join("\n");
13053
+ if (styles[0] && styles[0].index > headEnd) problems.push("the inline font style is not in <head>");
13054
+ const links = [...head.matchAll(LINK_RE)].map((match) => ({
13055
+ index: match.index,
13056
+ attributes: attributesOf(match[0])
13057
+ }));
13058
+ const firstStylesheet = links.find(({ attributes }) => attributes.rel === "stylesheet");
13059
+ const preloads = links.filter(
13060
+ ({ attributes }) => attributes.rel === "preload" && attributes.as === "font"
13061
+ );
13062
+ if (preloads.length === 0) problems.push("no font preload in <head>");
13063
+ for (const { index, attributes } of preloads) {
13064
+ const href = attributes.href ?? "";
13065
+ if (attributes.type !== "font/woff2") problems.push(`${href}: preload without type="font/woff2"`);
13066
+ if (!("crossorigin" in attributes)) problems.push(`${href}: preload without crossorigin`);
13067
+ if (firstStylesheet && index > firstStylesheet.index) {
13068
+ problems.push(`${href}: preload after the first stylesheet`);
13069
+ }
13070
+ if (!HASHED_FONT_RE.test(href)) problems.push(`${href}: not a content-hashed /fonts/ file`);
13071
+ else if (!fontExists(href.slice(href.indexOf("/fonts/") + "/fonts/".length))) {
13072
+ problems.push(`${href}: file missing from the build`);
13073
+ }
13074
+ if (!css.includes(`url(${href})`)) problems.push(`${href}: no @font-face src names it`);
13075
+ }
13076
+ const webFaces = css.match(/@font-face\{[^}]*src:url\([^}]*\}/g) ?? [];
13077
+ for (const face of webFaces) {
13078
+ if (!face.includes("font-display:optional")) {
13079
+ problems.push(`web face without font-display:optional: ${face.slice(0, 80)}`);
13080
+ }
13081
+ }
13082
+ if (!/font-family: '[^']+ Fallback'/.test(css)) problems.push("no '<Family> Fallback' face");
13083
+ if (/href="[^"]*dndev-fonts\.css"/.test(html)) problems.push("links the former /dndev-fonts.css");
13084
+ return problems;
13085
+ }
13086
+ function checkFontOutput(appDir, framework) {
13087
+ const output = OUTPUTS[framework];
13088
+ const fontsDir = joinPath(appDir, output.fonts);
13089
+ const shipped = pathExists(fontsDir) ? readdirSync3(fontsDir) : [];
13090
+ if (shipped.length === 0) return { documents: 0, problems: [] };
13091
+ const fontExists = (name) => shipped.includes(name);
13092
+ const problems = [];
13093
+ const serverFiles = joinPath(appDir, NEXT_SERVER_FILES);
13094
+ const isExport = framework === "nextjs" && pathExists(serverFiles) && readSync(serverFiles, { format: "json" })?.config?.output === "export";
13095
+ const htmlDirs = isExport ? [NEXT_EXPORT_DIR] : output.html;
13096
+ const documents = htmlDirs.flatMap(
13097
+ (dir) => htmlFiles(joinPath(appDir, dir)).filter((file) => {
13098
+ const relative4 = file.slice(joinPath(appDir, dir).length + 1);
13099
+ return !NOT_FRAMEWORK_DOCUMENTS.test(relative4) && !pathExists(joinPath(appDir, "public", relative4));
13100
+ })
13101
+ );
13102
+ for (const file of documents) {
13103
+ const html = readSync(file, { format: "text" });
13104
+ if (typeof html !== "string" || !html.includes("<head")) continue;
13105
+ for (const problem of checkFontHtml(html, fontExists)) {
13106
+ problems.push(`${file.slice(appDir.length + 1)}: ${problem}`);
13107
+ }
13108
+ }
13109
+ for (const dir of output.bundled) {
13110
+ for (const file of woff2Files(joinPath(appDir, dir))) {
13111
+ problems.push(`${file.slice(appDir.length + 1)}: font shipped by the bundler (the font plan ships every font)`);
13112
+ }
13113
+ }
13114
+ return { documents: documents.length, problems };
13115
+ }
13116
+ function reportFonts(appDir, framework) {
13117
+ const { documents, problems } = checkFontOutput(appDir, framework);
13118
+ if (documents === 0 && problems.length === 0) {
13119
+ log2.info("\u{1F524} fonts: system fonts only, nothing to preload");
13120
+ return 0;
13121
+ }
13122
+ if (problems.length === 0) {
13123
+ log2.info(`\u{1F524} fonts: ${documents} documents preload their fonts before the CSS, inline @font-face, font-display: optional`);
13124
+ return 0;
13125
+ }
13126
+ log2.error(`\u{1F524} fonts: ${problems.length} problem(s) in the build output:
13127
+ ${problems.join("\n ")}`);
13128
+ return 1;
13129
+ }
13130
+
12995
13131
  // packages/tooling/src/apps/sitemap-report.ts
12996
13132
  init_utils2();
12997
13133
  init_cli_output();
@@ -13212,6 +13348,10 @@ async function main(options = {}) {
13212
13348
  return result.status || 1;
13213
13349
  }
13214
13350
  if (app.framework === "nextjs") reportSitemap(appDir);
13351
+ if (app.framework === "nextjs" || app.framework === "vite") {
13352
+ const fontStatus = reportFonts(appDir, app.framework);
13353
+ if (fontStatus !== 0) return fontStatus;
13354
+ }
13215
13355
  }
13216
13356
  if (buildType === "functions" || buildType === "both") {
13217
13357
  if (!hasFunc) {
@@ -8948,7 +8948,7 @@ var init_type_guards = __esm({
8948
8948
 
8949
8949
  // packages/tooling/src/bundler/utils.ts
8950
8950
  import { Buffer as Buffer2 } from "node:buffer";
8951
- import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
8951
+ import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
8952
8952
  import { createRequire as createRequire3 } from "node:module";
8953
8953
  import { dirname as dirname4, resolve as resolve3 } from "node:path";
8954
8954
  import process from "node:process";
@@ -9625,8 +9625,8 @@ function generatePackageJson(templateName, mode, options = {}) {
9625
9625
  "chrome >= 64",
9626
9626
  "edge >= 79",
9627
9627
  "firefox >= 67",
9628
- "safari >= 12",
9629
- "ios_saf >= 12",
9628
+ "safari >= 15",
9629
+ "ios_saf >= 15",
9630
9630
  "opera >= 51",
9631
9631
  "not dead"
9632
9632
  ];
@@ -10385,6 +10385,7 @@ function runBunInstall(appRoot) {
10385
10385
  }
10386
10386
  async function main(options = {}) {
10387
10387
  const { dryRun } = options;
10388
+ const confirm2 = (message, defaultValue) => options.yes ? Promise.resolve(defaultValue) : askForConfirmation(message, defaultValue);
10388
10389
  intro("Bump \u2014 Update packages and sync project");
10389
10390
  if (dryRun) log2.info("DRY RUN MODE \u2014 no files will be modified");
10390
10391
  const appRoot = getAppRoot();
@@ -10401,6 +10402,9 @@ async function main(options = {}) {
10401
10402
  updateDocs = true;
10402
10403
  updateDemoApp = true;
10403
10404
  updateCockpitApp = true;
10405
+ } else if (options.yes) {
10406
+ updatePackages = true;
10407
+ updateDocs = true;
10404
10408
  } else {
10405
10409
  const selections = await askForMultiSelection(
10406
10410
  "What would you like to update?",
@@ -10549,7 +10553,7 @@ async function main(options = {}) {
10549
10553
  const allUpdates = [];
10550
10554
  const summary = [];
10551
10555
  if (frameworkUpdates.length > 0) {
10552
- const apply = await askForConfirmation(
10556
+ const apply = await confirm2(
10553
10557
  "Apply @donotdev/* updates?",
10554
10558
  true
10555
10559
  );
@@ -10557,13 +10561,13 @@ async function main(options = {}) {
10557
10561
  }
10558
10562
  let shouldRemoveDeprecated = false;
10559
10563
  if (deprecatedPkgs.length > 0) {
10560
- shouldRemoveDeprecated = await askForConfirmation(
10564
+ shouldRemoveDeprecated = await confirm2(
10561
10565
  "Remove deprecated packages?",
10562
10566
  true
10563
10567
  );
10564
10568
  }
10565
10569
  if (externalMinorUpdates.length > 0) {
10566
- const apply = await askForConfirmation(
10570
+ const apply = await confirm2(
10567
10571
  "Apply external dependency updates?",
10568
10572
  true
10569
10573
  );
@@ -10580,7 +10584,7 @@ async function main(options = {}) {
10580
10584
  }
10581
10585
  }
10582
10586
  }
10583
- const apply = await askForConfirmation(
10587
+ const apply = await confirm2(
10584
10588
  "Apply MAJOR updates? (breaking changes possible)",
10585
10589
  false
10586
10590
  );
@@ -10626,7 +10630,7 @@ async function main(options = {}) {
10626
10630
  }
10627
10631
  }
10628
10632
  note(summary.map((s2) => ` ${s2}`).join("\n"), "Done");
10629
- const shouldInstall = await askForConfirmation(
10633
+ const shouldInstall = await confirm2(
10630
10634
  "Run bun install now?",
10631
10635
  true
10632
10636
  );
@@ -7711,7 +7711,7 @@ var init_pathResolver = __esm({
7711
7711
 
7712
7712
  // packages/tooling/src/bundler/utils.ts
7713
7713
  import { Buffer as Buffer2 } from "node:buffer";
7714
- import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
7714
+ import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
7715
7715
  import { createRequire as createRequire3 } from "node:module";
7716
7716
  import { dirname as dirname4, resolve as resolve3 } from "node:path";
7717
7717
  import process from "node:process";
@@ -7828,6 +7828,7 @@ async function findCacheItems(targetDir, verbose) {
7828
7828
  check(joinPath(appPath, "public", "llms.txt"));
7829
7829
  check(joinPath(appPath, "public", "llms-full.txt"));
7830
7830
  check(joinPath(appPath, "public", "dndev-fonts.css"));
7831
+ check(joinPath(appPath, "public", "fonts"));
7831
7832
  check(joinPath(appPath, ".dndev-build"));
7832
7833
  }
7833
7834
  } catch (error2) {
@@ -7744,7 +7744,7 @@ var init_type_guards = __esm({
7744
7744
 
7745
7745
  // packages/tooling/src/bundler/utils.ts
7746
7746
  import { Buffer as Buffer2 } from "node:buffer";
7747
- import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
7747
+ import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
7748
7748
  import { createRequire as createRequire3 } from "node:module";
7749
7749
  import { dirname as dirname4, resolve as resolve3 } from "node:path";
7750
7750
  import process from "node:process";
@@ -9392,7 +9392,7 @@ var init_type_guards = __esm({
9392
9392
 
9393
9393
  // packages/tooling/src/bundler/utils.ts
9394
9394
  import { Buffer as Buffer2 } from "node:buffer";
9395
- import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
9395
+ import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
9396
9396
  import { createRequire as createRequire3 } from "node:module";
9397
9397
  import { dirname as dirname4, resolve as resolve3 } from "node:path";
9398
9398
  import process from "node:process";
@@ -10198,8 +10198,8 @@ function generatePackageJson(templateName, mode, options = {}) {
10198
10198
  "chrome >= 64",
10199
10199
  "edge >= 79",
10200
10200
  "firefox >= 67",
10201
- "safari >= 12",
10202
- "ios_saf >= 12",
10201
+ "safari >= 15",
10202
+ "ios_saf >= 15",
10203
10203
  "opera >= 51",
10204
10204
  "not dead"
10205
10205
  ];
@@ -9434,7 +9434,7 @@ var init_type_guards = __esm({
9434
9434
 
9435
9435
  // packages/tooling/src/bundler/utils.ts
9436
9436
  import { Buffer as Buffer2 } from "node:buffer";
9437
- import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
9437
+ import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
9438
9438
  import { createRequire as createRequire3 } from "node:module";
9439
9439
  import { dirname as dirname4, resolve as resolve3 } from "node:path";
9440
9440
  import process from "node:process";
@@ -10377,8 +10377,8 @@ function generatePackageJson(templateName, mode, options = {}) {
10377
10377
  "chrome >= 64",
10378
10378
  "edge >= 79",
10379
10379
  "firefox >= 67",
10380
- "safari >= 12",
10381
- "ios_saf >= 12",
10380
+ "safari >= 15",
10381
+ "ios_saf >= 15",
10382
10382
  "opera >= 51",
10383
10383
  "not dead"
10384
10384
  ];
@@ -9111,7 +9111,7 @@ var init_type_guards = __esm({
9111
9111
 
9112
9112
  // packages/tooling/src/bundler/utils.ts
9113
9113
  import { Buffer as Buffer2 } from "node:buffer";
9114
- import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
9114
+ import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
9115
9115
  import { createRequire as createRequire3 } from "node:module";
9116
9116
  import { dirname as dirname4, resolve as resolve3 } from "node:path";
9117
9117
  import process from "node:process";
@@ -9111,7 +9111,7 @@ var init_type_guards = __esm({
9111
9111
 
9112
9112
  // packages/tooling/src/bundler/utils.ts
9113
9113
  import { Buffer as Buffer2 } from "node:buffer";
9114
- import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
9114
+ import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
9115
9115
  import { createRequire as createRequire3 } from "node:module";
9116
9116
  import { dirname as dirname4, resolve as resolve3 } from "node:path";
9117
9117
  import process from "node:process";
@@ -8905,7 +8905,7 @@ var init_type_guards = __esm({
8905
8905
 
8906
8906
  // packages/tooling/src/bundler/utils.ts
8907
8907
  import { Buffer as Buffer2 } from "node:buffer";
8908
- import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
8908
+ import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
8909
8909
  import { createRequire as createRequire3 } from "node:module";
8910
8910
  import { dirname as dirname4, resolve as resolve3 } from "node:path";
8911
8911
  import process from "node:process";
@@ -9486,7 +9486,11 @@ var init_command_registry = __esm({
9486
9486
  flags: "--tar",
9487
9487
  description: "Create tarballs + update test repo (no publish)"
9488
9488
  },
9489
- { flags: "--force", description: "force publish (npm publish --force)" }
9489
+ { flags: "--force", description: "force publish (npm publish --force)" },
9490
+ {
9491
+ flags: "-y, --yes",
9492
+ description: 'skip the "publish to npm?" confirmation (unattended runs)'
9493
+ }
9490
9494
  ],
9491
9495
  loader: "../bundler/bundle.ts",
9492
9496
  exportName: "bundle"
@@ -9549,6 +9553,12 @@ var init_command_registry = __esm({
9549
9553
  description: "Update framework packages and peer dependencies to latest compatible versions",
9550
9554
  category: "build",
9551
9555
  public: true,
9556
+ options: [
9557
+ {
9558
+ flags: "-y, --yes",
9559
+ description: "Accept every default answer: packages and docs, no major updates, then bun install"
9560
+ }
9561
+ ],
9552
9562
  loader: "../maintenance/bump.ts",
9553
9563
  exportName: "bump"
9554
9564
  },
@@ -8492,7 +8492,7 @@ var init_type_guards = __esm({
8492
8492
 
8493
8493
  // packages/tooling/src/bundler/utils.ts
8494
8494
  import { Buffer as Buffer2 } from "node:buffer";
8495
- import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
8495
+ import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
8496
8496
  import { createRequire as createRequire3 } from "node:module";
8497
8497
  import { dirname as dirname4, resolve as resolve3 } from "node:path";
8498
8498
  import process from "node:process";
@@ -8103,7 +8103,7 @@ var init_type_guards = __esm({
8103
8103
 
8104
8104
  // packages/tooling/src/bundler/utils.ts
8105
8105
  import { Buffer as Buffer2 } from "node:buffer";
8106
- import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
8106
+ import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
8107
8107
  import { createRequire as createRequire3 } from "node:module";
8108
8108
  import { dirname as dirname4, resolve as resolve3 } from "node:path";
8109
8109
  import process from "node:process";
@@ -8683,7 +8683,7 @@ var init_type_guards = __esm({
8683
8683
 
8684
8684
  // packages/tooling/src/bundler/utils.ts
8685
8685
  import { Buffer as Buffer2 } from "node:buffer";
8686
- import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
8686
+ import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
8687
8687
  import { createRequire as createRequire3 } from "node:module";
8688
8688
  import { dirname as dirname4, resolve as resolve3 } from "node:path";
8689
8689
  import process from "node:process";
@@ -7707,7 +7707,7 @@ var init_type_guards = __esm({
7707
7707
 
7708
7708
  // packages/tooling/src/bundler/utils.ts
7709
7709
  import { Buffer as Buffer2 } from "node:buffer";
7710
- import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
7710
+ import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
7711
7711
  import { createRequire as createRequire3 } from "node:module";
7712
7712
  import { dirname as dirname4, resolve as resolve3 } from "node:path";
7713
7713
  import process from "node:process";
@@ -8735,7 +8735,7 @@ var init_type_guards = __esm({
8735
8735
 
8736
8736
  // packages/tooling/src/bundler/utils.ts
8737
8737
  import { Buffer as Buffer2 } from "node:buffer";
8738
- import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
8738
+ import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
8739
8739
  import { createRequire as createRequire3 } from "node:module";
8740
8740
  import { dirname as dirname4, resolve as resolve3 } from "node:path";
8741
8741
  import process from "node:process";
@@ -9225,8 +9225,8 @@ function generatePackageJson(templateName, mode, options = {}) {
9225
9225
  "chrome >= 64",
9226
9226
  "edge >= 79",
9227
9227
  "firefox >= 67",
9228
- "safari >= 12",
9229
- "ios_saf >= 12",
9228
+ "safari >= 15",
9229
+ "ios_saf >= 15",
9230
9230
  "opera >= 51",
9231
9231
  "not dead"
9232
9232
  ];
@@ -8780,7 +8780,7 @@ var init_type_guards = __esm({
8780
8780
 
8781
8781
  // packages/tooling/src/bundler/utils.ts
8782
8782
  import { Buffer as Buffer2 } from "node:buffer";
8783
- import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
8783
+ import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
8784
8784
  import { createRequire as createRequire3 } from "node:module";
8785
8785
  import { dirname as dirname4, resolve as resolve3 } from "node:path";
8786
8786
  import process from "node:process";
@@ -9356,7 +9356,11 @@ var init_command_registry = __esm({
9356
9356
  flags: "--tar",
9357
9357
  description: "Create tarballs + update test repo (no publish)"
9358
9358
  },
9359
- { flags: "--force", description: "force publish (npm publish --force)" }
9359
+ { flags: "--force", description: "force publish (npm publish --force)" },
9360
+ {
9361
+ flags: "-y, --yes",
9362
+ description: 'skip the "publish to npm?" confirmation (unattended runs)'
9363
+ }
9360
9364
  ],
9361
9365
  loader: "../bundler/bundle.ts",
9362
9366
  exportName: "bundle"
@@ -9419,6 +9423,12 @@ var init_command_registry = __esm({
9419
9423
  description: "Update framework packages and peer dependencies to latest compatible versions",
9420
9424
  category: "build",
9421
9425
  public: true,
9426
+ options: [
9427
+ {
9428
+ flags: "-y, --yes",
9429
+ description: "Accept every default answer: packages and docs, no major updates, then bun install"
9430
+ }
9431
+ ],
9422
9432
  loader: "../maintenance/bump.ts",
9423
9433
  exportName: "bump"
9424
9434
  },
@@ -8492,7 +8492,7 @@ var init_type_guards = __esm({
8492
8492
 
8493
8493
  // packages/tooling/src/bundler/utils.ts
8494
8494
  import { Buffer as Buffer2 } from "node:buffer";
8495
- import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
8495
+ import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
8496
8496
  import { createRequire as createRequire3 } from "node:module";
8497
8497
  import { dirname as dirname4, resolve as resolve3 } from "node:path";
8498
8498
  import process from "node:process";
@@ -9114,7 +9114,7 @@ var init_type_guards = __esm({
9114
9114
 
9115
9115
  // packages/tooling/src/bundler/utils.ts
9116
9116
  import { Buffer as Buffer2 } from "node:buffer";
9117
- import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
9117
+ import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
9118
9118
  import { createRequire as createRequire3 } from "node:module";
9119
9119
  import { dirname as dirname4, resolve as resolve3 } from "node:path";
9120
9120
  import process from "node:process";
@@ -8844,7 +8844,7 @@ var init_type_guards = __esm({
8844
8844
 
8845
8845
  // packages/tooling/src/bundler/utils.ts
8846
8846
  import { Buffer as Buffer2 } from "node:buffer";
8847
- import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
8847
+ import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
8848
8848
  import { createRequire as createRequire3 } from "node:module";
8849
8849
  import { dirname as dirname4, resolve as resolve3 } from "node:path";
8850
8850
  import process from "node:process";
@@ -9372,7 +9372,11 @@ var init_command_registry = __esm({
9372
9372
  flags: "--tar",
9373
9373
  description: "Create tarballs + update test repo (no publish)"
9374
9374
  },
9375
- { flags: "--force", description: "force publish (npm publish --force)" }
9375
+ { flags: "--force", description: "force publish (npm publish --force)" },
9376
+ {
9377
+ flags: "-y, --yes",
9378
+ description: 'skip the "publish to npm?" confirmation (unattended runs)'
9379
+ }
9376
9380
  ],
9377
9381
  loader: "../bundler/bundle.ts",
9378
9382
  exportName: "bundle"
@@ -9435,6 +9439,12 @@ var init_command_registry = __esm({
9435
9439
  description: "Update framework packages and peer dependencies to latest compatible versions",
9436
9440
  category: "build",
9437
9441
  public: true,
9442
+ options: [
9443
+ {
9444
+ flags: "-y, --yes",
9445
+ description: "Accept every default answer: packages and docs, no major updates, then bun install"
9446
+ }
9447
+ ],
9438
9448
  loader: "../maintenance/bump.ts",
9439
9449
  exportName: "bump"
9440
9450
  },
@@ -8957,7 +8957,7 @@ var init_type_guards = __esm({
8957
8957
 
8958
8958
  // packages/tooling/src/bundler/utils.ts
8959
8959
  import { Buffer as Buffer2 } from "node:buffer";
8960
- import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
8960
+ import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
8961
8961
  import { createRequire as createRequire3 } from "node:module";
8962
8962
  import { dirname as dirname4, resolve as resolve3 } from "node:path";
8963
8963
  import process from "node:process";