@donotdev/cli 0.0.30 → 0.0.32

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 (35) hide show
  1. package/dependencies-matrix.json +14 -18
  2. package/dist/bin/commands/agent-setup.js +2 -2
  3. package/dist/bin/commands/build.js +19 -14
  4. package/dist/bin/commands/bump.js +424 -187
  5. package/dist/bin/commands/cacheout.js +19 -14
  6. package/dist/bin/commands/coach.js +19 -14
  7. package/dist/bin/commands/create-app.js +19 -14
  8. package/dist/bin/commands/create-project.js +19 -14
  9. package/dist/bin/commands/db.js +20 -3711
  10. package/dist/bin/commands/deploy.js +19 -14
  11. package/dist/bin/commands/dev.js +19 -14
  12. package/dist/bin/commands/doctor.js +19 -14
  13. package/dist/bin/commands/emu.js +19 -14
  14. package/dist/bin/commands/format.js +19 -14
  15. package/dist/bin/commands/get-demo.js +19 -14
  16. package/dist/bin/commands/make-admin.js +19 -14
  17. package/dist/bin/commands/preview.js +19 -14
  18. package/dist/bin/commands/seed.js +20 -3711
  19. package/dist/bin/commands/setup-cicd.js +19 -14
  20. package/dist/bin/commands/setup.js +19 -14
  21. package/dist/bin/commands/staging.js +19 -14
  22. package/dist/bin/commands/sync-secrets.js +19 -14
  23. package/dist/bin/commands/type-check.js +19 -14
  24. package/dist/bin/commands/wai.js +19 -14
  25. package/dist/bin/dndev.js +1 -1
  26. package/dist/bin/donotdev.js +1 -1
  27. package/dist/index.js +19 -14
  28. package/package.json +1 -1
  29. package/templates/app-next/src/globals.css.example +3 -2
  30. package/templates/app-next/src/pages/HomePage.tsx.example +1 -1
  31. package/templates/app-vite/src/pages/HomePage.tsx.example +1 -1
  32. package/templates/root-consumer/guides/dndev/COMPONENTS_ATOMIC.md.example +3 -3
  33. package/templates/root-consumer/guides/dndev/COMPONENTS_UI.md.example +1 -6
  34. package/templates/root-consumer/guides/wai-way/page_patterns.md.example +70 -34
  35. package/templates/app-demo/stats.html.example +0 -4949
@@ -163,7 +163,7 @@ var require_picocolors = __commonJS({
163
163
  }
164
164
  });
165
165
 
166
- // node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs
166
+ // node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
167
167
  import { stdin as j, stdout as M } from "node:process";
168
168
  import * as g from "node:readline";
169
169
  import O from "node:readline";
@@ -279,7 +279,7 @@ function fD({ input: e2 = j, output: u2 = M, overwrite: t = true, hideCursor: F2
279
279
  }
280
280
  var import_sisteransi, uD, W, tD, eD, FD, sD, w, N, I, R, r, iD, CD, ED, d, oD, y, V, nD, G, _, z, K, aD, k, hD, lD, xD, B, AD, S, gD, vD, h, x, dD, A, OD, PD, J, LD;
281
281
  var init_dist = __esm({
282
- "node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs"() {
282
+ "node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs"() {
283
283
  init_utils();
284
284
  import_sisteransi = __toESM(require_src(), 1);
285
285
  uD = DD();
@@ -6802,7 +6802,7 @@ import {
6802
6802
  sep,
6803
6803
  extname
6804
6804
  } from "node:path";
6805
- import { fileURLToPath } from "node:url";
6805
+ import "node:url";
6806
6806
  function safeExecuteAsync(fn, message) {
6807
6807
  return fn().catch((error2) => {
6808
6808
  throw new Error(
@@ -7729,19 +7729,24 @@ var init_PathResolver = __esm({
7729
7729
  return resolved;
7730
7730
  }
7731
7731
  /**
7732
- * Get path to empty.js module for optional dependency aliasing
7733
- * Used by Vite and Turbopack to alias missing optional deps
7734
- * @param returnPackageSpecifier - If true, returns package specifier '@donotdev/core/empty' for Turbopack. If false, returns absolute path for Vite.
7735
- * @returns Package specifier or absolute path to empty.js
7732
+ * Get absolute path to empty ESM module for optional dependency aliasing.
7733
+ * Used by Vite resolveId — served directly to the browser in dev mode.
7734
+ * Note: resolvePackage uses require.resolve (CJS) which picks the "default"
7735
+ * condition (.cjs), so we derive the ESM path from it.
7736
7736
  */
7737
- getEmptyModulePath(returnPackageSpecifier = false) {
7738
- if (returnPackageSpecifier) {
7739
- return "@donotdev/core/empty";
7740
- }
7737
+ getEmptyModulePath() {
7738
+ const cjsPath = this.getEmptyCjsModulePath();
7739
+ return cjsPath.replace(/\.cjs$/, ".js");
7740
+ }
7741
+ /**
7742
+ * Get absolute path to empty CJS module for esbuild pre-bundling.
7743
+ * CJS because esbuild statically analyzes ESM exports — CJS has dynamic
7744
+ * exports, so any named import resolves.
7745
+ */
7746
+ getEmptyCjsModulePath() {
7741
7747
  const resolved = this.resolvePackage("@donotdev/core/empty");
7742
- if (resolved) return resolved;
7743
- const thisDir = dirname(fileURLToPath(import.meta.url));
7744
- return this.normalizePath(join(thisDir, "../empty.js"));
7748
+ if (!resolved) throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");
7749
+ return resolved;
7745
7750
  }
7746
7751
  // === PRIVATE METHODS ===
7747
7752
  /**
@@ -167,7 +167,7 @@ var require_picocolors = __commonJS({
167
167
  }
168
168
  });
169
169
 
170
- // node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs
170
+ // node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
171
171
  import { stdin as j, stdout as M } from "node:process";
172
172
  import * as g from "node:readline";
173
173
  import O from "node:readline";
@@ -283,7 +283,7 @@ function fD({ input: e2 = j, output: u2 = M, overwrite: t = true, hideCursor: F2
283
283
  }
284
284
  var import_sisteransi, import_picocolors, uD, W, tD, eD, FD, sD, w, N, I, R, r, iD, CD, ED, d, oD, y, V, nD, G, _, z, K, aD, k, hD, lD, xD, B, AD, S, gD, vD, h, x, dD, A, OD, PD, J, LD, RD;
285
285
  var init_dist = __esm({
286
- "node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs"() {
286
+ "node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs"() {
287
287
  init_utils();
288
288
  import_sisteransi = __toESM(require_src(), 1);
289
289
  import_picocolors = __toESM(require_picocolors(), 1);
@@ -6851,7 +6851,7 @@ import {
6851
6851
  sep,
6852
6852
  extname
6853
6853
  } from "node:path";
6854
- import { fileURLToPath } from "node:url";
6854
+ import "node:url";
6855
6855
  function safeExecuteAsync2(fn, message) {
6856
6856
  return fn().catch((error2) => {
6857
6857
  throw new Error(
@@ -7778,19 +7778,24 @@ var init_PathResolver = __esm({
7778
7778
  return resolved;
7779
7779
  }
7780
7780
  /**
7781
- * Get path to empty.js module for optional dependency aliasing
7782
- * Used by Vite and Turbopack to alias missing optional deps
7783
- * @param returnPackageSpecifier - If true, returns package specifier '@donotdev/core/empty' for Turbopack. If false, returns absolute path for Vite.
7784
- * @returns Package specifier or absolute path to empty.js
7781
+ * Get absolute path to empty ESM module for optional dependency aliasing.
7782
+ * Used by Vite resolveId — served directly to the browser in dev mode.
7783
+ * Note: resolvePackage uses require.resolve (CJS) which picks the "default"
7784
+ * condition (.cjs), so we derive the ESM path from it.
7785
7785
  */
7786
- getEmptyModulePath(returnPackageSpecifier = false) {
7787
- if (returnPackageSpecifier) {
7788
- return "@donotdev/core/empty";
7789
- }
7786
+ getEmptyModulePath() {
7787
+ const cjsPath = this.getEmptyCjsModulePath();
7788
+ return cjsPath.replace(/\.cjs$/, ".js");
7789
+ }
7790
+ /**
7791
+ * Get absolute path to empty CJS module for esbuild pre-bundling.
7792
+ * CJS because esbuild statically analyzes ESM exports — CJS has dynamic
7793
+ * exports, so any named import resolves.
7794
+ */
7795
+ getEmptyCjsModulePath() {
7790
7796
  const resolved = this.resolvePackage("@donotdev/core/empty");
7791
- if (resolved) return resolved;
7792
- const thisDir = dirname(fileURLToPath(import.meta.url));
7793
- return this.normalizePath(join(thisDir, "../empty.js"));
7797
+ if (!resolved) throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");
7798
+ return resolved;
7794
7799
  }
7795
7800
  // === PRIVATE METHODS ===
7796
7801
  /**
@@ -167,7 +167,7 @@ var require_picocolors = __commonJS({
167
167
  }
168
168
  });
169
169
 
170
- // node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs
170
+ // node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
171
171
  import { stdin as j, stdout as M } from "node:process";
172
172
  import * as g from "node:readline";
173
173
  import O from "node:readline";
@@ -283,7 +283,7 @@ function fD({ input: e2 = j, output: u2 = M, overwrite: t = true, hideCursor: F2
283
283
  }
284
284
  var import_sisteransi, import_picocolors, uD, W, tD, eD, FD, sD, w, N, I, R, r, iD, CD, ED, d, oD, y, V, nD, G, _, z, K, aD, k, hD, lD, xD, B, AD, S, gD, vD, h, x, dD, A, OD, PD, J, LD, RD;
285
285
  var init_dist = __esm({
286
- "node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs"() {
286
+ "node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs"() {
287
287
  init_utils();
288
288
  import_sisteransi = __toESM(require_src(), 1);
289
289
  import_picocolors = __toESM(require_picocolors(), 1);
@@ -6844,7 +6844,7 @@ import {
6844
6844
  sep,
6845
6845
  extname
6846
6846
  } from "node:path";
6847
- import { fileURLToPath } from "node:url";
6847
+ import "node:url";
6848
6848
  function safeExecuteAsync(fn, message) {
6849
6849
  return fn().catch((error2) => {
6850
6850
  throw new Error(
@@ -7771,19 +7771,24 @@ var init_PathResolver = __esm({
7771
7771
  return resolved;
7772
7772
  }
7773
7773
  /**
7774
- * Get path to empty.js module for optional dependency aliasing
7775
- * Used by Vite and Turbopack to alias missing optional deps
7776
- * @param returnPackageSpecifier - If true, returns package specifier '@donotdev/core/empty' for Turbopack. If false, returns absolute path for Vite.
7777
- * @returns Package specifier or absolute path to empty.js
7774
+ * Get absolute path to empty ESM module for optional dependency aliasing.
7775
+ * Used by Vite resolveId — served directly to the browser in dev mode.
7776
+ * Note: resolvePackage uses require.resolve (CJS) which picks the "default"
7777
+ * condition (.cjs), so we derive the ESM path from it.
7778
7778
  */
7779
- getEmptyModulePath(returnPackageSpecifier = false) {
7780
- if (returnPackageSpecifier) {
7781
- return "@donotdev/core/empty";
7782
- }
7779
+ getEmptyModulePath() {
7780
+ const cjsPath = this.getEmptyCjsModulePath();
7781
+ return cjsPath.replace(/\.cjs$/, ".js");
7782
+ }
7783
+ /**
7784
+ * Get absolute path to empty CJS module for esbuild pre-bundling.
7785
+ * CJS because esbuild statically analyzes ESM exports — CJS has dynamic
7786
+ * exports, so any named import resolves.
7787
+ */
7788
+ getEmptyCjsModulePath() {
7783
7789
  const resolved = this.resolvePackage("@donotdev/core/empty");
7784
- if (resolved) return resolved;
7785
- const thisDir = dirname(fileURLToPath(import.meta.url));
7786
- return this.normalizePath(join(thisDir, "../empty.js"));
7790
+ if (!resolved) throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");
7791
+ return resolved;
7787
7792
  }
7788
7793
  // === PRIVATE METHODS ===
7789
7794
  /**
@@ -163,7 +163,7 @@ var require_picocolors = __commonJS({
163
163
  }
164
164
  });
165
165
 
166
- // node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs
166
+ // node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
167
167
  import { stdin as j, stdout as M } from "node:process";
168
168
  import O from "node:readline";
169
169
  import { Writable as X } from "node:stream";
@@ -257,7 +257,7 @@ function m(e2, u2) {
257
257
  }
258
258
  var import_sisteransi, uD, W, tD, eD, FD, sD, w, N, I, R, r, iD, CD, ED, d, oD, y, V, nD, G, _, z, K, aD, k, hD, lD, xD, B, AD, S, gD, vD, h, x, A, OD, PD, J, LD;
259
259
  var init_dist = __esm({
260
- "node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs"() {
260
+ "node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs"() {
261
261
  init_utils();
262
262
  import_sisteransi = __toESM(require_src(), 1);
263
263
  uD = DD();
@@ -6687,7 +6687,7 @@ import {
6687
6687
  sep,
6688
6688
  extname
6689
6689
  } from "node:path";
6690
- import { fileURLToPath } from "node:url";
6690
+ import "node:url";
6691
6691
  function safeExecuteAsync(fn, message) {
6692
6692
  return fn().catch((error2) => {
6693
6693
  throw new Error(
@@ -7614,19 +7614,24 @@ var init_PathResolver = __esm({
7614
7614
  return resolved;
7615
7615
  }
7616
7616
  /**
7617
- * Get path to empty.js module for optional dependency aliasing
7618
- * Used by Vite and Turbopack to alias missing optional deps
7619
- * @param returnPackageSpecifier - If true, returns package specifier '@donotdev/core/empty' for Turbopack. If false, returns absolute path for Vite.
7620
- * @returns Package specifier or absolute path to empty.js
7617
+ * Get absolute path to empty ESM module for optional dependency aliasing.
7618
+ * Used by Vite resolveId — served directly to the browser in dev mode.
7619
+ * Note: resolvePackage uses require.resolve (CJS) which picks the "default"
7620
+ * condition (.cjs), so we derive the ESM path from it.
7621
7621
  */
7622
- getEmptyModulePath(returnPackageSpecifier = false) {
7623
- if (returnPackageSpecifier) {
7624
- return "@donotdev/core/empty";
7625
- }
7622
+ getEmptyModulePath() {
7623
+ const cjsPath = this.getEmptyCjsModulePath();
7624
+ return cjsPath.replace(/\.cjs$/, ".js");
7625
+ }
7626
+ /**
7627
+ * Get absolute path to empty CJS module for esbuild pre-bundling.
7628
+ * CJS because esbuild statically analyzes ESM exports — CJS has dynamic
7629
+ * exports, so any named import resolves.
7630
+ */
7631
+ getEmptyCjsModulePath() {
7626
7632
  const resolved = this.resolvePackage("@donotdev/core/empty");
7627
- if (resolved) return resolved;
7628
- const thisDir = dirname(fileURLToPath(import.meta.url));
7629
- return this.normalizePath(join(thisDir, "../empty.js"));
7633
+ if (!resolved) throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");
7634
+ return resolved;
7630
7635
  }
7631
7636
  // === PRIVATE METHODS ===
7632
7637
  /**
@@ -163,7 +163,7 @@ var require_picocolors = __commonJS({
163
163
  }
164
164
  });
165
165
 
166
- // node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs
166
+ // node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
167
167
  import { stdin as j, stdout as M } from "node:process";
168
168
  import * as g from "node:readline";
169
169
  import { Writable as X } from "node:stream";
@@ -231,7 +231,7 @@ function fD({ input: e2 = j, output: u2 = M, overwrite: t = true, hideCursor: F2
231
231
  }
232
232
  var import_sisteransi, uD, W, tD, eD, FD, sD, w, N, I, R, r, iD, CD, ED, nD, _, xD, B, AD, A;
233
233
  var init_dist = __esm({
234
- "node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs"() {
234
+ "node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs"() {
235
235
  init_utils();
236
236
  import_sisteransi = __toESM(require_src(), 1);
237
237
  uD = DD();
@@ -6479,7 +6479,7 @@ import {
6479
6479
  sep,
6480
6480
  extname
6481
6481
  } from "node:path";
6482
- import { fileURLToPath } from "node:url";
6482
+ import "node:url";
6483
6483
  function safeExecuteAsync(fn, message) {
6484
6484
  return fn().catch((error2) => {
6485
6485
  throw new Error(
@@ -7406,19 +7406,24 @@ var init_PathResolver = __esm({
7406
7406
  return resolved;
7407
7407
  }
7408
7408
  /**
7409
- * Get path to empty.js module for optional dependency aliasing
7410
- * Used by Vite and Turbopack to alias missing optional deps
7411
- * @param returnPackageSpecifier - If true, returns package specifier '@donotdev/core/empty' for Turbopack. If false, returns absolute path for Vite.
7412
- * @returns Package specifier or absolute path to empty.js
7409
+ * Get absolute path to empty ESM module for optional dependency aliasing.
7410
+ * Used by Vite resolveId — served directly to the browser in dev mode.
7411
+ * Note: resolvePackage uses require.resolve (CJS) which picks the "default"
7412
+ * condition (.cjs), so we derive the ESM path from it.
7413
7413
  */
7414
- getEmptyModulePath(returnPackageSpecifier = false) {
7415
- if (returnPackageSpecifier) {
7416
- return "@donotdev/core/empty";
7417
- }
7414
+ getEmptyModulePath() {
7415
+ const cjsPath = this.getEmptyCjsModulePath();
7416
+ return cjsPath.replace(/\.cjs$/, ".js");
7417
+ }
7418
+ /**
7419
+ * Get absolute path to empty CJS module for esbuild pre-bundling.
7420
+ * CJS because esbuild statically analyzes ESM exports — CJS has dynamic
7421
+ * exports, so any named import resolves.
7422
+ */
7423
+ getEmptyCjsModulePath() {
7418
7424
  const resolved = this.resolvePackage("@donotdev/core/empty");
7419
- if (resolved) return resolved;
7420
- const thisDir = dirname(fileURLToPath(import.meta.url));
7421
- return this.normalizePath(join(thisDir, "../empty.js"));
7425
+ if (!resolved) throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");
7426
+ return resolved;
7422
7427
  }
7423
7428
  // === PRIVATE METHODS ===
7424
7429
  /**
@@ -163,7 +163,7 @@ var require_picocolors = __commonJS({
163
163
  }
164
164
  });
165
165
 
166
- // node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs
166
+ // node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
167
167
  import { stdin as j, stdout as M } from "node:process";
168
168
  import { Writable as X } from "node:stream";
169
169
  function DD({ onlyFirst: e2 = false } = {}) {
@@ -204,7 +204,7 @@ function rD() {
204
204
  }
205
205
  var import_sisteransi, uD, W, tD, eD, FD, sD, w, N, I, R, r, iD, CD, ED, nD, _, xD, B, AD, A;
206
206
  var init_dist = __esm({
207
- "node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs"() {
207
+ "node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs"() {
208
208
  init_utils();
209
209
  import_sisteransi = __toESM(require_src(), 1);
210
210
  uD = DD();
@@ -6226,7 +6226,7 @@ import {
6226
6226
  sep,
6227
6227
  extname
6228
6228
  } from "node:path";
6229
- import { fileURLToPath } from "node:url";
6229
+ import "node:url";
6230
6230
  function safeExecuteAsync(fn, message) {
6231
6231
  return fn().catch((error2) => {
6232
6232
  throw new Error(
@@ -7153,19 +7153,24 @@ var init_PathResolver = __esm({
7153
7153
  return resolved;
7154
7154
  }
7155
7155
  /**
7156
- * Get path to empty.js module for optional dependency aliasing
7157
- * Used by Vite and Turbopack to alias missing optional deps
7158
- * @param returnPackageSpecifier - If true, returns package specifier '@donotdev/core/empty' for Turbopack. If false, returns absolute path for Vite.
7159
- * @returns Package specifier or absolute path to empty.js
7156
+ * Get absolute path to empty ESM module for optional dependency aliasing.
7157
+ * Used by Vite resolveId — served directly to the browser in dev mode.
7158
+ * Note: resolvePackage uses require.resolve (CJS) which picks the "default"
7159
+ * condition (.cjs), so we derive the ESM path from it.
7160
7160
  */
7161
- getEmptyModulePath(returnPackageSpecifier = false) {
7162
- if (returnPackageSpecifier) {
7163
- return "@donotdev/core/empty";
7164
- }
7161
+ getEmptyModulePath() {
7162
+ const cjsPath = this.getEmptyCjsModulePath();
7163
+ return cjsPath.replace(/\.cjs$/, ".js");
7164
+ }
7165
+ /**
7166
+ * Get absolute path to empty CJS module for esbuild pre-bundling.
7167
+ * CJS because esbuild statically analyzes ESM exports — CJS has dynamic
7168
+ * exports, so any named import resolves.
7169
+ */
7170
+ getEmptyCjsModulePath() {
7165
7171
  const resolved = this.resolvePackage("@donotdev/core/empty");
7166
- if (resolved) return resolved;
7167
- const thisDir = dirname(fileURLToPath(import.meta.url));
7168
- return this.normalizePath(join(thisDir, "../empty.js"));
7172
+ if (!resolved) throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");
7173
+ return resolved;
7169
7174
  }
7170
7175
  // === PRIVATE METHODS ===
7171
7176
  /**
package/dist/bin/dndev.js CHANGED
@@ -950,7 +950,7 @@ function registerCommand(program2, def, action) {
950
950
  }
951
951
 
952
952
  // packages/cli/src/bin/dndev.mjs
953
- var CLI_VERSION = true ? "0.0.30" : "0.0.0";
953
+ var CLI_VERSION = true ? "0.0.32" : "0.0.0";
954
954
  var args = process.argv.slice(2);
955
955
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v")) {
956
956
  console.log(CLI_VERSION);
@@ -950,7 +950,7 @@ function registerCommand(program2, def, action) {
950
950
  }
951
951
 
952
952
  // packages/cli/src/bin/dndev.mjs
953
- var CLI_VERSION = true ? "0.0.30" : "0.0.0";
953
+ var CLI_VERSION = true ? "0.0.32" : "0.0.0";
954
954
  var args = process.argv.slice(2);
955
955
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v")) {
956
956
  console.log(CLI_VERSION);
package/dist/index.js CHANGED
@@ -167,7 +167,7 @@ var require_picocolors = __commonJS({
167
167
  }
168
168
  });
169
169
 
170
- // node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs
170
+ // node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs
171
171
  import { stdin as j, stdout as M } from "node:process";
172
172
  import * as g from "node:readline";
173
173
  import O from "node:readline";
@@ -283,7 +283,7 @@ function fD({ input: e2 = j, output: u2 = M, overwrite: t = true, hideCursor: F2
283
283
  }
284
284
  var import_sisteransi, import_picocolors, uD, W, tD, eD, FD, sD, w, N, I, R, r, iD, CD, ED, d, oD, y, V, nD, G, _, z, K, aD, k, hD, lD, xD, B, AD, S, gD, vD, h, x, dD, A, kD, $D, H, SD, OD, PD, J, LD, RD;
285
285
  var init_dist = __esm({
286
- "node_modules/.bun/@clack+prompts@0.11.0/node_modules/@clack/prompts/node_modules/@clack/core/dist/index.mjs"() {
286
+ "node_modules/.bun/@clack+core@0.5.0/node_modules/@clack/core/dist/index.mjs"() {
287
287
  init_utils();
288
288
  import_sisteransi = __toESM(require_src(), 1);
289
289
  import_picocolors = __toESM(require_picocolors(), 1);
@@ -6986,7 +6986,7 @@ import {
6986
6986
  sep,
6987
6987
  extname
6988
6988
  } from "node:path";
6989
- import { fileURLToPath } from "node:url";
6989
+ import "node:url";
6990
6990
  function safeExecuteAsync(fn, message) {
6991
6991
  return fn().catch((error2) => {
6992
6992
  throw new Error(
@@ -7913,19 +7913,24 @@ var init_PathResolver = __esm({
7913
7913
  return resolved;
7914
7914
  }
7915
7915
  /**
7916
- * Get path to empty.js module for optional dependency aliasing
7917
- * Used by Vite and Turbopack to alias missing optional deps
7918
- * @param returnPackageSpecifier - If true, returns package specifier '@donotdev/core/empty' for Turbopack. If false, returns absolute path for Vite.
7919
- * @returns Package specifier or absolute path to empty.js
7916
+ * Get absolute path to empty ESM module for optional dependency aliasing.
7917
+ * Used by Vite resolveId — served directly to the browser in dev mode.
7918
+ * Note: resolvePackage uses require.resolve (CJS) which picks the "default"
7919
+ * condition (.cjs), so we derive the ESM path from it.
7920
7920
  */
7921
- getEmptyModulePath(returnPackageSpecifier = false) {
7922
- if (returnPackageSpecifier) {
7923
- return "@donotdev/core/empty";
7924
- }
7921
+ getEmptyModulePath() {
7922
+ const cjsPath = this.getEmptyCjsModulePath();
7923
+ return cjsPath.replace(/\.cjs$/, ".js");
7924
+ }
7925
+ /**
7926
+ * Get absolute path to empty CJS module for esbuild pre-bundling.
7927
+ * CJS because esbuild statically analyzes ESM exports — CJS has dynamic
7928
+ * exports, so any named import resolves.
7929
+ */
7930
+ getEmptyCjsModulePath() {
7925
7931
  const resolved = this.resolvePackage("@donotdev/core/empty");
7926
- if (resolved) return resolved;
7927
- const thisDir = dirname(fileURLToPath(import.meta.url));
7928
- return this.normalizePath(join(thisDir, "../empty.js"));
7932
+ if (!resolved) throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");
7933
+ return resolved;
7929
7934
  }
7930
7935
  // === PRIVATE METHODS ===
7931
7936
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@donotdev/cli",
3
- "version": "0.0.30",
3
+ "version": "0.0.32",
4
4
  "description": "Command-line interface for DoNotDev Framework",
5
5
  "type": "module",
6
6
  "private": false,
@@ -1,9 +1,10 @@
1
1
  /* Next.js app globals.css */
2
- @import '@donotdev/ui/dndev.css';
2
+ @import '@donotdev/ui/dndev-next.css';
3
3
 
4
4
  @import './themes.css';
5
5
 
6
6
  /**
7
7
  * Font choices (--font-family, --font-sans, etc.) belong in themes.css.
8
- * Fonts (Inter, Space Grotesk, Playfair, Roboto) are bundled via @donotdev/ui; no external fetch, no public/fonts required.
8
+ * Fonts are served from public/fonts/ (auto-copied by framework discovery).
9
+ * dndev-next.css = font-stripped variant — use this for Next.js, NOT dndev.css.
9
10
  */
@@ -60,7 +60,7 @@ export default function HomePage() {
60
60
  />
61
61
 
62
62
  {/* Layout Switcher */}
63
- <Section title="Try Our Layouts" tone="muted" align="center">
63
+ <Section title="Try Our Layouts" tone="muted" textAlign="center">
64
64
  <Text>
65
65
  Pick a layout and see it change live. Set your preferred layout in
66
66
  config/app.ts
@@ -173,7 +173,7 @@ export default function HomePage() {
173
173
  {/* NEXT STEPS */}
174
174
  {/* ================================================================ */}
175
175
 
176
- <Section title="Start Building" tone="muted" align="center">
176
+ <Section title="Start Building" tone="muted" textAlign="center">
177
177
  <Stack align="center">
178
178
  <Text level="body">
179
179
  Once setup is complete, use WAI-WAY to build your app:
@@ -11,11 +11,11 @@
11
11
  ## Layout Components
12
12
 
13
13
  These are the only ways one should handle layout to get to quick results functionality wide.
14
- - **Section** - Layout section with title, grid, and tone system for organizing content.
14
+ - **Section** - Layout section with title, grid, tone system, and `bleed` prop for full-viewport-width content (images, maps, galleries).
15
15
  - **Grid** - CSS Grid layout primitive with responsive column control.
16
16
  - **Stack** - Flexbox layout for arranging items in rows or columns.
17
- - **HeroSection** - Hero banner section with title, subtitle, and gradient backgrounds.
18
- - **CallToAction** - Conversion-focused section with primary and secondary actions.
17
+ - **HeroSection** - Hero banner with title, subtitle, gradient backgrounds, `bleed` for full-width, and `backgroundImage` for cover images with overlay.
18
+ - **CallToAction** - Conversion-focused section with actions, `bleed` for full-width, and `backgroundImage` for cover images with overlay.
19
19
 
20
20
  ---
21
21
 
@@ -47,15 +47,10 @@
47
47
 
48
48
  ## Common Components
49
49
 
50
- - **AppLoading** - App-level loading component.
51
50
  - **FeatureDisabled** - Component shown when features are disabled.
52
51
  - **Icon** - Icon component wrapper.
53
- - **Loader** - Loading spinner component.
54
- - **LoadingMessage** - Loading message with variants (processing, saving, uploading, etc.).
55
- - **LoadingOverlay** - Overlay component for loading states.
56
- - **LoadingScreen** - Full-screen loading component.
57
52
  - **ProgressBar** - Progress bar component.
58
- - **Skeleton** - Skeleton loading component.
53
+ - **Skeleton** - Skeleton loading component (consumer use, not used internally).
59
54
  - **FeatureCard** - Feature showcase card component.
60
55
  - **TechBento** - Tech stack showcase component.
61
56