@donotdev/cli 0.0.26 → 0.0.28

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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "$schema": "./dependencies-matrix.schema.json",
3
3
  "version": "0.0.6",
4
- "description": "Centralized dependency versions for DoNotDev framework. Single source of truth for all external dependencies. ⚠️ SYNC REQUIRED: When adding/removing @donotdev/* feature packages (auth, billing, crud, oauth), also update packages/core/config/constants.js BUNDLING.optionalFeatures array.",
5
- "lastUpdated": "2026-03-04",
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-03-06",
6
6
  "migrationGuides": {
7
7
  "0.0→0.1": {
8
8
  "path": "docs/migration/v0.0-to-v0.1.md",
@@ -17,73 +17,73 @@
17
17
  "@donotdev/auth": {
18
18
  "description": "Authentication package",
19
19
  "packages": {
20
- "@donotdev/auth": "^0.0.16"
20
+ "@donotdev/auth": "^0.0.18"
21
21
  }
22
22
  },
23
23
  "@donotdev/billing": {
24
24
  "description": "Billing package",
25
25
  "packages": {
26
- "@donotdev/billing": "^0.0.14"
26
+ "@donotdev/billing": "^0.0.16"
27
27
  }
28
28
  },
29
29
  "@donotdev/components": {
30
30
  "description": "UI components package",
31
31
  "packages": {
32
- "@donotdev/components": "^0.0.25"
32
+ "@donotdev/components": "^0.0.27"
33
33
  }
34
34
  },
35
35
  "@donotdev/core": {
36
36
  "description": "Core framework package",
37
37
  "packages": {
38
- "@donotdev/core": "^0.0.35"
38
+ "@donotdev/core": "^0.0.36"
39
39
  }
40
40
  },
41
41
  "@donotdev/crud": {
42
42
  "description": "CRUD operations package",
43
43
  "packages": {
44
- "@donotdev/crud": "^0.0.22"
44
+ "@donotdev/crud": "^0.0.24"
45
45
  }
46
46
  },
47
47
  "@donotdev/firebase": {
48
48
  "description": "Firebase provider package",
49
49
  "packages": {
50
- "@donotdev/firebase": "^0.0.18"
50
+ "@donotdev/firebase": "^0.0.20"
51
51
  }
52
52
  },
53
53
  "@donotdev/functions": {
54
54
  "description": "Firebase Functions package",
55
55
  "packages": {
56
- "@donotdev/functions": "^0.0.18"
56
+ "@donotdev/functions": "^0.0.19"
57
57
  }
58
58
  },
59
59
  "@donotdev/oauth": {
60
60
  "description": "OAuth package",
61
61
  "packages": {
62
- "@donotdev/oauth": "^0.0.14"
62
+ "@donotdev/oauth": "^0.0.16"
63
63
  }
64
64
  },
65
65
  "@donotdev/templates": {
66
66
  "description": "Page templates package",
67
67
  "packages": {
68
- "@donotdev/templates": "^0.0.17"
68
+ "@donotdev/templates": "^0.0.18"
69
69
  }
70
70
  },
71
71
  "@donotdev/ui": {
72
72
  "description": "UI and routing package",
73
73
  "packages": {
74
- "@donotdev/ui": "^0.0.22"
74
+ "@donotdev/ui": "^0.0.24"
75
75
  }
76
76
  },
77
77
  "@donotdev/expo": {
78
78
  "description": "Expo/React Native components package",
79
79
  "packages": {
80
- "@donotdev/expo": "^0.0.8"
80
+ "@donotdev/expo": "^0.0.9"
81
81
  }
82
82
  },
83
83
  "@donotdev/supabase": {
84
84
  "description": "Supabase provider package",
85
85
  "packages": {
86
- "@donotdev/supabase": "^0.0.7"
86
+ "@donotdev/supabase": "^0.0.9"
87
87
  }
88
88
  },
89
89
  "supabase-js": {
@@ -418,13 +418,13 @@
418
418
  "@donotdev/cli": {
419
419
  "description": "Cli package",
420
420
  "packages": {
421
- "@donotdev/cli": "^0.0.26"
421
+ "@donotdev/cli": "^0.0.28"
422
422
  }
423
423
  },
424
424
  "@donotdev/mcp-server": {
425
425
  "description": "MCP server for component type lookups",
426
426
  "packages": {
427
- "@donotdev/mcp-server": "^0.0.13"
427
+ "@donotdev/mcp-server": "^0.0.14"
428
428
  }
429
429
  },
430
430
  "mcp-sdk": {
@@ -450,7 +450,7 @@
450
450
  "@donotdev/security": {
451
451
  "description": "Security package",
452
452
  "packages": {
453
- "@donotdev/security": "^0.0.8"
453
+ "@donotdev/security": "^0.0.9"
454
454
  }
455
455
  },
456
456
  "xterm": {
@@ -462,9 +462,10 @@
462
462
  }
463
463
  },
464
464
  "node-pty": {
465
- "description": "PTY for terminal sidecar",
465
+ "description": "PTY for terminal sidecar (native C++ addon)",
466
+ "rootExclude": true,
466
467
  "packages": {
467
- "node-pty": "^1.0.0"
468
+ "node-pty": "^1.1.0"
468
469
  }
469
470
  },
470
471
  "react-markdown-cockpit": {
@@ -514,11 +515,23 @@
514
515
  "core-vite-config",
515
516
  "postcss"
516
517
  ],
517
- "devDependencies": ["vite", "next", "typescript"]
518
+ "devDependencies": [
519
+ "vite",
520
+ "next",
521
+ "typescript"
522
+ ]
518
523
  },
519
524
  "@donotdev/components": {
520
- "dependencies": ["radix", "styling", "react-day-picker"],
521
- "peerDependencies": ["react", "shiki", "lucide-react"],
525
+ "dependencies": [
526
+ "radix",
527
+ "styling",
528
+ "react-day-picker"
529
+ ],
530
+ "peerDependencies": [
531
+ "react",
532
+ "shiki",
533
+ "lucide-react"
534
+ ],
522
535
  "peerDependenciesMeta": {
523
536
  "shiki": {
524
537
  "optional": true
@@ -529,23 +542,58 @@
529
542
  "peerDependencies": [
530
543
  "react",
531
544
  "lucide-react",
532
- "firebase",
545
+ "@donotdev/auth",
546
+ "@donotdev/billing",
533
547
  "@donotdev/crud",
548
+ "@donotdev/oauth",
534
549
  "routing",
535
550
  "validation"
536
551
  ],
537
- "dependencies": ["fontsource-themes", "forms", "seo"],
552
+ "dependencies": [
553
+ "fontsource-themes",
554
+ "forms",
555
+ "seo"
556
+ ],
538
557
  "peerDependenciesMeta": {
558
+ "@donotdev/auth": {
559
+ "optional": true
560
+ },
561
+ "@donotdev/billing": {
562
+ "optional": true
563
+ },
539
564
  "@donotdev/crud": {
540
565
  "optional": true
566
+ },
567
+ "@donotdev/oauth": {
568
+ "optional": true
569
+ },
570
+ "routing": {
571
+ "optional": true
541
572
  }
542
573
  }
543
574
  },
544
575
  "@donotdev/auth": {
545
- "peerDependencies": ["react", "firebase"]
576
+ "peerDependencies": [
577
+ "react",
578
+ "@donotdev/firebase",
579
+ "@donotdev/supabase"
580
+ ],
581
+ "peerDependenciesMeta": {
582
+ "@donotdev/firebase": {
583
+ "optional": true
584
+ },
585
+ "@donotdev/supabase": {
586
+ "optional": true
587
+ }
588
+ }
546
589
  },
547
590
  "@donotdev/billing": {
548
- "peerDependencies": ["react", "lucide-react", "stripe"]
591
+ "peerDependencies": [
592
+ "react",
593
+ "lucide-react",
594
+ "stripe",
595
+ "@donotdev/auth"
596
+ ]
549
597
  },
550
598
  "@donotdev/crud": {
551
599
  "dependencies": [
@@ -555,45 +603,52 @@
555
603
  "@dnd-kit",
556
604
  "forms-resolvers"
557
605
  ],
558
- "devDependencies": ["tiptap"],
606
+ "devDependencies": [
607
+ "tiptap"
608
+ ],
559
609
  "peerDependencies": [
560
- "@donotdev/firebase",
561
610
  "react",
562
611
  "forms",
563
- "firebase",
564
612
  "validation",
565
613
  "lucide-react",
566
614
  "tiptap"
567
615
  ],
568
616
  "peerDependenciesMeta": {
569
- "@donotdev/firebase": {
570
- "optional": true
571
- },
572
- "firebase": {
573
- "optional": true
574
- },
575
617
  "tiptap": {
576
618
  "optional": true
577
619
  }
578
620
  }
579
621
  },
580
622
  "@donotdev/firebase": {
581
- "dependencies": ["browser-image-compression"],
582
- "peerDependencies": ["firebase"]
623
+ "dependencies": [
624
+ "browser-image-compression",
625
+ "firebase",
626
+ "firebase-admin"
627
+ ]
583
628
  },
584
629
  "@donotdev/supabase": {
585
- "dependencies": ["validation"],
586
- "peerDependencies": ["supabase-js"]
630
+ "dependencies": [
631
+ "validation",
632
+ "supabase-js"
633
+ ]
587
634
  },
588
635
  "@donotdev/i18n": {
589
- "dependencies": ["i18n"],
590
- "peerDependencies": ["lucide-react"]
636
+ "dependencies": [
637
+ "i18n"
638
+ ],
639
+ "peerDependencies": [
640
+ "lucide-react"
641
+ ]
591
642
  },
592
643
  "@donotdev/stores": {
593
- "dependencies": ["zustand"]
644
+ "dependencies": [
645
+ "zustand"
646
+ ]
594
647
  },
595
648
  "@donotdev/schemas": {
596
- "dependencies": ["validation"]
649
+ "dependencies": [
650
+ "validation"
651
+ ]
597
652
  },
598
653
  "@donotdev/types": {
599
654
  "devDependencies": [
@@ -605,18 +660,34 @@
605
660
  ]
606
661
  },
607
662
  "@donotdev/utils": {
608
- "dependencies": ["zustand"],
609
- "peerDependencies": ["monitoring"],
610
- "devDependencies": ["validation", "firebase", "i18n"]
663
+ "dependencies": [
664
+ "zustand"
665
+ ],
666
+ "peerDependencies": [
667
+ "monitoring"
668
+ ],
669
+ "devDependencies": [
670
+ "validation",
671
+ "firebase",
672
+ "i18n"
673
+ ]
611
674
  },
612
675
  "@donotdev/hooks": {
613
- "dependencies": ["react-query"]
676
+ "dependencies": [
677
+ "react-query"
678
+ ]
614
679
  },
615
680
  "@donotdev/cli": {
616
- "dependencies": ["cli-prompts", "cli-commander", "fast-glob"]
681
+ "dependencies": [
682
+ "cli-prompts",
683
+ "cli-commander",
684
+ "fast-glob"
685
+ ]
617
686
  },
618
687
  "@donotdev/mcp-server": {
619
- "dependencies": ["mcp-sdk"]
688
+ "dependencies": [
689
+ "mcp-sdk"
690
+ ]
620
691
  },
621
692
  "@donotdev/tooling": {
622
693
  "dependencies": [
@@ -628,13 +699,19 @@
628
699
  "supabase-cli",
629
700
  "supabase-js"
630
701
  ],
631
- "devDependencies": ["yaml"]
702
+ "devDependencies": [
703
+ "yaml"
704
+ ]
632
705
  },
633
706
  "@donotdev/oauth": {
634
- "peerDependencies": ["react"]
707
+ "peerDependencies": [
708
+ "react"
709
+ ]
635
710
  },
636
711
  "@donotdev/functions": {
637
- "dependencies": ["@donotdev/core"],
712
+ "dependencies": [
713
+ "@donotdev/core"
714
+ ],
638
715
  "peerDependencies": [
639
716
  "firebase-functions",
640
717
  "firebase-admin",
@@ -806,7 +883,10 @@
806
883
  "validation",
807
884
  "lucide-react"
808
885
  ],
809
- "devDependencies": ["root-consumer-tooling", "supabase-cli"],
886
+ "devDependencies": [
887
+ "root-consumer-tooling",
888
+ "supabase-cli"
889
+ ],
810
890
  "conditional": {
811
891
  "provider-firebase": "platform===firebase",
812
892
  "provider-supabase": "platform===supabase",
@@ -866,7 +946,12 @@
866
946
  "shiki",
867
947
  "tiptap"
868
948
  ],
869
- "devDependencies": ["next", "typescript", "types", "postcss"],
949
+ "devDependencies": [
950
+ "next",
951
+ "typescript",
952
+ "types",
953
+ "postcss"
954
+ ],
870
955
  "conditional": {
871
956
  "provider-firebase": "platform===firebase",
872
957
  "provider-supabase": "platform===supabase"
@@ -886,7 +971,12 @@
886
971
  "validation",
887
972
  "react-query"
888
973
  ],
889
- "devDependencies": ["expo", "typescript", "types-expo", "react-native"],
974
+ "devDependencies": [
975
+ "expo",
976
+ "typescript",
977
+ "types-expo",
978
+ "react-native"
979
+ ],
890
980
  "conditional": {
891
981
  "provider-firebase": "platform===firebase",
892
982
  "provider-supabase": "platform===supabase"
@@ -906,7 +996,12 @@
906
996
  "validation",
907
997
  "react-query"
908
998
  ],
909
- "devDependencies": ["expo", "typescript", "types-expo", "react-native"],
999
+ "devDependencies": [
1000
+ "expo",
1001
+ "typescript",
1002
+ "types-expo",
1003
+ "react-native"
1004
+ ],
910
1005
  "conditional": {
911
1006
  "provider-firebase": "platform===firebase",
912
1007
  "provider-supabase": "platform===supabase"
@@ -933,12 +1028,19 @@
933
1028
  "monitoring-node",
934
1029
  "stripe"
935
1030
  ],
936
- "devDependencies": ["vercel"]
1031
+ "devDependencies": [
1032
+ "vercel"
1033
+ ]
937
1034
  },
938
1035
  "entities": {
939
1036
  "description": "Entities workspace package",
940
- "dependencies": ["validation"],
941
- "devDependencies": ["eslint", "typescript"]
1037
+ "dependencies": [
1038
+ "validation"
1039
+ ],
1040
+ "devDependencies": [
1041
+ "eslint",
1042
+ "typescript"
1043
+ ]
942
1044
  },
943
1045
  "demo": {
944
1046
  "description": "Demo app template (SaaS reference app)",
@@ -8042,9 +8042,10 @@ function loadMatrix(mode) {
8042
8042
  };
8043
8043
  return cachedMatrix;
8044
8044
  }
8045
- function flattenGroups(groups) {
8045
+ function flattenGroups(groups, options) {
8046
8046
  const flat = {};
8047
8047
  for (const group of Object.values(groups)) {
8048
+ if (options?.skipRootExclude && group.rootExclude) continue;
8048
8049
  for (const [name, version] of Object.entries(group.packages || {})) {
8049
8050
  flat[name] = version;
8050
8051
  }
@@ -8037,6 +8037,17 @@ function createAppEnv(appPath) {
8037
8037
  DNDEV_APP_ROOT: appPath
8038
8038
  };
8039
8039
  }
8040
+ function spawnCrossPlatform(command, args, options) {
8041
+ const isWindows = platform() === "win32";
8042
+ const useShell = options.shell ?? isWindows;
8043
+ if (useShell) {
8044
+ const fullCommand = `${command} ${args.join(" ")}`;
8045
+ const { shell: _4, ...rest2 } = options;
8046
+ return spawn(fullCommand, [], { ...rest2, shell: true });
8047
+ }
8048
+ const { shell: _3, ...rest } = options;
8049
+ return spawn(command, args, rest);
8050
+ }
8040
8051
  function createEmulatorEnv(appPath, framework = "vite", options) {
8041
8052
  const baseEnv = createAppEnv(appPath);
8042
8053
  const prefix = framework === "nextjs" ? "NEXT_PUBLIC_" : "VITE_";
@@ -8078,11 +8089,7 @@ init_utils();
8078
8089
  init_cli_input();
8079
8090
  init_cli_output();
8080
8091
  init_pathResolver();
8081
- import {
8082
- spawn as spawn2,
8083
- spawnSync as spawnSync2,
8084
- execSync as execSync2
8085
- } from "node:child_process";
8092
+ import { spawnSync as spawnSync2, execSync as execSync2 } from "node:child_process";
8086
8093
  import { platform as platform2 } from "node:os";
8087
8094
  init_typed_file_operations();
8088
8095
  function discoverFirebaseProjectId(appPath) {
@@ -8341,7 +8348,7 @@ FIREBASE_AUTH_EMULATOR_HOST=${authEmulatorHost}
8341
8348
  log.info("");
8342
8349
  }
8343
8350
  const isWindows = platform2() === "win32";
8344
- const childProcess = spawn2(
8351
+ const childProcess = spawnCrossPlatform(
8345
8352
  "bunx",
8346
8353
  ["concurrently", ...concurrentlyArgs],
8347
8354
  {
@@ -8350,8 +8357,7 @@ FIREBASE_AUTH_EMULATOR_HOST=${authEmulatorHost}
8350
8357
  useEmulatorAuth: useAuth,
8351
8358
  useEmulatorFirestore: useFirestore
8352
8359
  }),
8353
- cwd: app.path,
8354
- shell: isWindows
8360
+ cwd: app.path
8355
8361
  }
8356
8362
  );
8357
8363
  const SIGNAL_EXIT_CODES = {
@@ -8415,7 +8421,7 @@ FIREBASE_AUTH_EMULATOR_HOST=${authEmulatorHost}
8415
8421
  // packages/tooling/src/apps/emu-supabase.ts
8416
8422
  init_utils();
8417
8423
  init_cli_output();
8418
- import { spawn as spawn3, execSync as execSync3 } from "node:child_process";
8424
+ import { execSync as execSync3 } from "node:child_process";
8419
8425
  import { platform as platform3 } from "node:os";
8420
8426
  function isDockerRunning() {
8421
8427
  try {
@@ -8452,13 +8458,12 @@ async function startSupabase(app, _projectRoot) {
8452
8458
  "supabase start",
8453
8459
  `bunx turbo dev --filter=${app.packageName}`
8454
8460
  ];
8455
- const childProcess = spawn3(
8461
+ const childProcess = spawnCrossPlatform(
8456
8462
  "bunx",
8457
8463
  ["concurrently", ...concurrentlyArgs],
8458
8464
  {
8459
8465
  stdio: "inherit",
8460
- cwd: app.path,
8461
- shell: isWindows
8466
+ cwd: app.path
8462
8467
  }
8463
8468
  );
8464
8469
  const cleanup = () => {
@@ -8498,7 +8503,7 @@ async function startSupabase(app, _projectRoot) {
8498
8503
  // packages/tooling/src/apps/emu-vercel.ts
8499
8504
  init_utils();
8500
8505
  init_cli_output();
8501
- import { spawn as spawn4, execSync as execSync4 } from "node:child_process";
8506
+ import { execSync as execSync4 } from "node:child_process";
8502
8507
  import { platform as platform4 } from "node:os";
8503
8508
  async function startVercel(app, _projectRoot) {
8504
8509
  log.info(`Starting Vercel dev server for ${app.name}...
@@ -8511,10 +8516,9 @@ async function startVercel(app, _projectRoot) {
8511
8516
  return 1;
8512
8517
  }
8513
8518
  const isWindows = platform4() === "win32";
8514
- const childProcess = spawn4("vercel", ["dev"], {
8519
+ const childProcess = spawnCrossPlatform("vercel", ["dev"], {
8515
8520
  stdio: "inherit",
8516
- cwd: app.path,
8517
- shell: isWindows
8521
+ cwd: app.path
8518
8522
  });
8519
8523
  const cleanup = () => {
8520
8524
  if (!childProcess.pid) return;
@@ -77681,6 +77681,20 @@ var COMMAND_REGISTRY = [
77681
77681
  loader: "../bundler/bundle.ts",
77682
77682
  exportName: "bundle"
77683
77683
  },
77684
+ {
77685
+ name: "pack [packages...]",
77686
+ description: "Create tarballs for testing in consumer apps",
77687
+ category: "build",
77688
+ options: [
77689
+ {
77690
+ flags: "--install <path...>",
77691
+ description: "Install tarballs into consumer app(s). Repeatable: --install ../wai --install ../apc"
77692
+ },
77693
+ { flags: "--skip-build", description: "Use existing dist/ (no rebuild)" }
77694
+ ],
77695
+ loader: "../bundler/pack.ts",
77696
+ exportName: "pack"
77697
+ },
77684
77698
  {
77685
77699
  name: "clean",
77686
77700
  description: "Clean build artifacts, caches, and node_modules",
package/dist/bin/dndev.js CHANGED
@@ -452,6 +452,20 @@ var init_command_registry = __esm({
452
452
  loader: "../bundler/bundle.ts",
453
453
  exportName: "bundle"
454
454
  },
455
+ {
456
+ name: "pack [packages...]",
457
+ description: "Create tarballs for testing in consumer apps",
458
+ category: "build",
459
+ options: [
460
+ {
461
+ flags: "--install <path...>",
462
+ description: "Install tarballs into consumer app(s). Repeatable: --install ../wai --install ../apc"
463
+ },
464
+ { flags: "--skip-build", description: "Use existing dist/ (no rebuild)" }
465
+ ],
466
+ loader: "../bundler/pack.ts",
467
+ exportName: "pack"
468
+ },
455
469
  {
456
470
  name: "clean",
457
471
  description: "Clean build artifacts, caches, and node_modules",
@@ -936,7 +950,7 @@ function registerCommand(program2, def, action) {
936
950
  }
937
951
 
938
952
  // packages/cli/src/bin/dndev.mjs
939
- var CLI_VERSION = true ? "0.0.26" : "0.0.0";
953
+ var CLI_VERSION = true ? "0.0.28" : "0.0.0";
940
954
  var args = process.argv.slice(2);
941
955
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v")) {
942
956
  console.log(CLI_VERSION);
@@ -340,6 +340,80 @@ var init_command_registry = __esm({
340
340
  loader: "../quality/validate-package.ts",
341
341
  exportName: "validatePackage"
342
342
  },
343
+ {
344
+ name: "syncpack",
345
+ description: "Check dependency version consistency across all packages (syncpack)",
346
+ category: "development",
347
+ options: [
348
+ {
349
+ flags: "--fix",
350
+ description: "auto-fix version mismatches"
351
+ }
352
+ ],
353
+ loader: "../quality/syncpack.ts",
354
+ exportName: "syncpack"
355
+ },
356
+ {
357
+ name: "knip",
358
+ description: "Detect dead code, unused exports, and unlisted dependencies (knip)",
359
+ category: "development",
360
+ options: [
361
+ {
362
+ flags: "--fix",
363
+ description: "auto-remove unused exports"
364
+ }
365
+ ],
366
+ loader: "../quality/knip.ts",
367
+ exportName: "knip"
368
+ },
369
+ {
370
+ name: "publint",
371
+ description: "Validate package.json exports/files fields for all published packages",
372
+ category: "development",
373
+ options: [
374
+ {
375
+ flags: "--package <package>",
376
+ description: "validate a specific package"
377
+ }
378
+ ],
379
+ loader: "../quality/publint.ts",
380
+ exportName: "publint"
381
+ },
382
+ {
383
+ name: "attw",
384
+ description: "Verify TypeScript type resolution for published packages (@arethetypeswrong)",
385
+ category: "development",
386
+ options: [
387
+ {
388
+ flags: "--package <package>",
389
+ description: "check a specific package"
390
+ }
391
+ ],
392
+ loader: "../quality/attw.ts",
393
+ exportName: "attw"
394
+ },
395
+ {
396
+ name: "size",
397
+ description: "Check bundle sizes against budgets (size-limit)",
398
+ alias: "size-limit",
399
+ category: "development",
400
+ options: [
401
+ {
402
+ flags: "--json",
403
+ description: "output machine-readable JSON"
404
+ }
405
+ ],
406
+ loader: "../quality/size-limit.ts",
407
+ exportName: "sizeLimit"
408
+ },
409
+ {
410
+ name: "preflight",
411
+ description: "Run all quality gates before bundling (lint, syncpack, knip, publint, attw, size)",
412
+ alias: "pf",
413
+ category: "development",
414
+ loader: "../quality/preflight.ts",
415
+ exportName: "preflight"
416
+ },
343
417
  // ---------------------------------------------------------------------------
344
418
  // Build & Maintenance
345
419
  // ---------------------------------------------------------------------------
@@ -361,6 +435,10 @@ var init_command_registry = __esm({
361
435
  flags: "--skip-validation",
362
436
  description: "skip package validation before build"
363
437
  },
438
+ {
439
+ flags: "--skip-preflight",
440
+ description: "skip publint + attw pre-publish checks"
441
+ },
364
442
  {
365
443
  flags: "--verdaccio",
366
444
  description: "publish to local Verdaccio registry instead of npm"
@@ -374,6 +452,20 @@ var init_command_registry = __esm({
374
452
  loader: "../bundler/bundle.ts",
375
453
  exportName: "bundle"
376
454
  },
455
+ {
456
+ name: "pack [packages...]",
457
+ description: "Create tarballs for testing in consumer apps",
458
+ category: "build",
459
+ options: [
460
+ {
461
+ flags: "--install <path...>",
462
+ description: "Install tarballs into consumer app(s). Repeatable: --install ../wai --install ../apc"
463
+ },
464
+ { flags: "--skip-build", description: "Use existing dist/ (no rebuild)" }
465
+ ],
466
+ loader: "../bundler/pack.ts",
467
+ exportName: "pack"
468
+ },
377
469
  {
378
470
  name: "clean",
379
471
  description: "Clean build artifacts, caches, and node_modules",
@@ -858,7 +950,7 @@ function registerCommand(program2, def, action) {
858
950
  }
859
951
 
860
952
  // packages/cli/src/bin/dndev.mjs
861
- var CLI_VERSION = true ? "0.0.23" : "0.0.0";
953
+ var CLI_VERSION = true ? "0.0.28" : "0.0.0";
862
954
  var args = process.argv.slice(2);
863
955
  if (args.length === 1 && (args[0] === "--version" || args[0] === "-v")) {
864
956
  console.log(CLI_VERSION);
package/dist/index.js CHANGED
@@ -17779,11 +17779,7 @@ init_utils();
17779
17779
  init_cli_input();
17780
17780
  init_cli_output();
17781
17781
  init_pathResolver();
17782
- import {
17783
- spawn as spawn2,
17784
- spawnSync as spawnSync3,
17785
- execSync as execSync4
17786
- } from "node:child_process";
17782
+ import { spawnSync as spawnSync3, execSync as execSync4 } from "node:child_process";
17787
17783
  import { platform as platform3 } from "node:os";
17788
17784
  init_typed_file_operations();
17789
17785
  function discoverFirebaseProjectId(appPath) {
@@ -18042,7 +18038,7 @@ FIREBASE_AUTH_EMULATOR_HOST=${authEmulatorHost}
18042
18038
  log.info("");
18043
18039
  }
18044
18040
  const isWindows = platform3() === "win32";
18045
- const childProcess = spawn2(
18041
+ const childProcess = spawnCrossPlatform(
18046
18042
  "bunx",
18047
18043
  ["concurrently", ...concurrentlyArgs],
18048
18044
  {
@@ -18051,8 +18047,7 @@ FIREBASE_AUTH_EMULATOR_HOST=${authEmulatorHost}
18051
18047
  useEmulatorAuth: useAuth,
18052
18048
  useEmulatorFirestore: useFirestore
18053
18049
  }),
18054
- cwd: app.path,
18055
- shell: isWindows
18050
+ cwd: app.path
18056
18051
  }
18057
18052
  );
18058
18053
  const SIGNAL_EXIT_CODES3 = {
@@ -18116,7 +18111,7 @@ FIREBASE_AUTH_EMULATOR_HOST=${authEmulatorHost}
18116
18111
  // packages/tooling/src/apps/emu-supabase.ts
18117
18112
  init_utils();
18118
18113
  init_cli_output();
18119
- import { spawn as spawn3, execSync as execSync5 } from "node:child_process";
18114
+ import { execSync as execSync5 } from "node:child_process";
18120
18115
  import { platform as platform4 } from "node:os";
18121
18116
  function isDockerRunning() {
18122
18117
  try {
@@ -18153,13 +18148,12 @@ async function startSupabase(app, _projectRoot) {
18153
18148
  "supabase start",
18154
18149
  `bunx turbo dev --filter=${app.packageName}`
18155
18150
  ];
18156
- const childProcess = spawn3(
18151
+ const childProcess = spawnCrossPlatform(
18157
18152
  "bunx",
18158
18153
  ["concurrently", ...concurrentlyArgs],
18159
18154
  {
18160
18155
  stdio: "inherit",
18161
- cwd: app.path,
18162
- shell: isWindows
18156
+ cwd: app.path
18163
18157
  }
18164
18158
  );
18165
18159
  const cleanup = () => {
@@ -18199,7 +18193,7 @@ async function startSupabase(app, _projectRoot) {
18199
18193
  // packages/tooling/src/apps/emu-vercel.ts
18200
18194
  init_utils();
18201
18195
  init_cli_output();
18202
- import { spawn as spawn4, execSync as execSync6 } from "node:child_process";
18196
+ import { execSync as execSync6 } from "node:child_process";
18203
18197
  import { platform as platform5 } from "node:os";
18204
18198
  async function startVercel(app, _projectRoot) {
18205
18199
  log.info(`Starting Vercel dev server for ${app.name}...
@@ -18212,10 +18206,9 @@ async function startVercel(app, _projectRoot) {
18212
18206
  return 1;
18213
18207
  }
18214
18208
  const isWindows = platform5() === "win32";
18215
- const childProcess = spawn4("vercel", ["dev"], {
18209
+ const childProcess = spawnCrossPlatform("vercel", ["dev"], {
18216
18210
  stdio: "inherit",
18217
- cwd: app.path,
18218
- shell: isWindows
18211
+ cwd: app.path
18219
18212
  });
18220
18213
  const cleanup = () => {
18221
18214
  if (!childProcess.pid) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@donotdev/cli",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "description": "Command-line interface for DoNotDev Framework",
5
5
  "type": "module",
6
6
  "private": false,
@@ -9,11 +9,9 @@
9
9
  "donotdev": "./dist/bin/donotdev.js"
10
10
  },
11
11
  "main": "./dist/index.js",
12
- "types": "./dist/index.d.ts",
13
12
  "exports": {
14
13
  ".": {
15
- "import": "./dist/index.js",
16
- "types": "./dist/index.d.ts"
14
+ "import": "./dist/index.js"
17
15
  },
18
16
  "./package.json": "./package.json",
19
17
  "./dependencies-matrix.json": "./dependencies-matrix.json"
@@ -27,6 +27,7 @@
27
27
  --border: #27272a;
28
28
  --input: #27272a;
29
29
  --ring: var(--primary);
30
+ /* --placeholder: rgb(from var(--muted-foreground) r g b / 0.6); */
30
31
 
31
32
  /* Brand colors */
32
33
  --primary: #0ea5e9;
@@ -78,7 +79,6 @@
78
79
  --card-foreground: #f97316;
79
80
  --popover: #000000;
80
81
  --popover-foreground: #ffffff;
81
- --surface-1: #0a0a0a;
82
82
 
83
83
  /* 4. Text on Colors */
84
84
  --primary-foreground: #ffffff;
@@ -182,7 +182,6 @@
182
182
  --card-foreground: #1c1917;
183
183
  --popover: #ffffff;
184
184
  --popover-foreground: #1c1917;
185
- --surface-1: #faf8f5;
186
185
 
187
186
  /* 4. Text on Colors */
188
187
  --primary-foreground: #ffffff;
@@ -248,7 +247,6 @@
248
247
  --card-foreground: #c8e6c9;
249
248
  --popover: #222228;
250
249
  --popover-foreground: #c8e6c9;
251
- --surface-1: #1e1e24;
252
250
 
253
251
  /* 4. Text on Colors */
254
252
  --primary-foreground: #0f172a;
@@ -29,6 +29,7 @@
29
29
  --border: #e4e4e7;
30
30
  --input: #e4e4e7;
31
31
  --ring: var(--primary);
32
+ /* --placeholder: rgb(from var(--muted-foreground) r g b / 0.6); */
32
33
  --card: #ffffff;
33
34
  --card-foreground: #09090b;
34
35
  --popover: #ffffff;
@@ -1,58 +1,7 @@
1
1
  /**
2
2
  * PostCSS config for Next.js
3
- * Uses custom resolver for workspace package resolution (matches framework pattern)
3
+ * Uses framework resolver with CSS alias support (dndev.css → dndev-next.css)
4
4
  */
5
+ import { definePostCSSConfig } from '@donotdev/core/next';
5
6
 
6
- import postcssImport from 'postcss-import';
7
- import postcssNesting from 'postcss-nesting';
8
- import autoprefixer from 'autoprefixer';
9
- import { createRequire } from 'node:module';
10
- import { resolve, join, dirname } from 'node:path';
11
- import { existsSync } from 'node:fs';
12
-
13
- const findPackageRoot = (startDir) => {
14
- let current = resolve(startDir);
15
- const root = resolve('/');
16
-
17
- while (current !== root) {
18
- const pkgPath = join(current, 'package.json');
19
- if (existsSync(pkgPath)) {
20
- return current;
21
- }
22
- const parent = dirname(current);
23
- if (parent === current) break;
24
- current = parent;
25
- }
26
-
27
- return startDir;
28
- };
29
-
30
- const customResolve = (id, basedir) => {
31
- try {
32
- const packageRoot = findPackageRoot(basedir);
33
- const require = createRequire(join(packageRoot, 'package.json'));
34
- return require.resolve(id);
35
- } catch (error) {
36
- return resolve(basedir, id);
37
- }
38
- };
39
-
40
- /** @type {import('postcss-load-config').Config} */
41
- const config = {
42
- plugins: [
43
- postcssImport({ resolve: customResolve }),
44
- postcssNesting,
45
- autoprefixer({
46
- overrideBrowserslist: [
47
- '> 1%',
48
- 'last 2 versions',
49
- 'Firefox ESR',
50
- 'not dead',
51
- 'not op_mini all',
52
- ],
53
- grid: 'autoplace',
54
- }),
55
- ],
56
- };
57
-
58
- export default config;
7
+ export default await definePostCSSConfig();
@@ -1,6 +1,15 @@
1
1
  'use client';
2
2
  // src/app/ClientLayout.tsx
3
3
 
4
+ // Import generated configs first to set globalThis._DNDEV_CONFIG_ before any hooks run
5
+ // Each handler writes to its own file to avoid overwrites
6
+ import '../config/dndev-config-route.js';
7
+ import '../config/dndev-config-theme.js';
8
+ import '../config/dndev-config-i18n.js';
9
+ import '../config/dndev-config-pwa.js';
10
+ import '../config/dndev-config-asset.js';
11
+ import '../config/dndev-config-seo.js';
12
+
4
13
  import { NextJsAppProviders } from '@donotdev/ui/next';
5
14
 
6
15
  import '../config/providers';
@@ -21,6 +21,9 @@
21
21
  /* --radius-interactive: var(--radius-none); */
22
22
  /* --radius-surface: var(--radius-md); */
23
23
  /* --radius-floating: var(--radius-none); */
24
+
25
+ /* Form placeholders (Select, Input, Combobox, etc.) */
26
+ /* --placeholder: rgb(from var(--muted-foreground) r g b / 0.6); */
24
27
  }
25
28
 
26
29
  /* ===========================
@@ -29,6 +29,7 @@
29
29
  --border: #e4e4e7;
30
30
  --input: #e4e4e7;
31
31
  --ring: var(--primary);
32
+ /* --placeholder: rgb(from var(--muted-foreground) r g b / 0.6); */
32
33
  --card: #ffffff;
33
34
  --card-foreground: #09090b;
34
35
  --popover: #ffffff;
@@ -27,6 +27,25 @@ export const appConfig: AppConfig = {
27
27
  **Firebase:** Enable providers in Firebase Console → Authentication → Sign-in method
28
28
  **Supabase:** Enable providers in Supabase Dashboard → Authentication → Providers
29
29
 
30
+ ### Redirect URLs (Supabase only)
31
+
32
+ After OAuth (Google, GitHub, etc.), Supabase redirects the user back to your app. You must tell Supabase which URLs are allowed.
33
+
34
+ **Supabase Dashboard → Authentication → URL Configuration:**
35
+
36
+ | Setting | Value |
37
+ |---------|-------|
38
+ | **Site URL** | Your **production** URL (e.g., `https://myapp.vercel.app`) |
39
+ | **Redirect URLs** | All URLs where auth should work (see below) |
40
+
41
+ **Add to Redirect URLs:**
42
+ - `http://localhost:5173` — local Vite dev
43
+ - `http://localhost:3000` — local Next.js dev
44
+ - `https://myapp.vercel.app` — production
45
+ - `https://*-yourteam.vercel.app` — Vercel preview deploys
46
+
47
+ > **Site URL must be production.** It's the fallback when no redirect URL matches. If it's `localhost:3000`, your deployed app redirects to localhost after OAuth.
48
+
30
49
  ---
31
50
 
32
51
  ## Advanced: Protected Routes
@@ -192,12 +192,36 @@ dndev emu start
192
192
 
193
193
  ---
194
194
 
195
+ ## Auth Redirect URLs (Supabase)
196
+
197
+ After deploying, configure Supabase so OAuth (Google, GitHub, etc.) redirects back to your Vercel URL instead of `localhost`.
198
+
199
+ **Supabase Dashboard → Authentication → URL Configuration:**
200
+
201
+ | Setting | Value |
202
+ |---------|-------|
203
+ | **Site URL** | Your production URL (e.g., `https://myapp.vercel.app`) |
204
+ | **Redirect URLs** | Add all deployment URLs where auth should work |
205
+
206
+ **Redirect URLs to add:**
207
+
208
+ - `http://localhost:5173` — local Vite dev
209
+ - `http://localhost:3000` — local Next.js dev
210
+ - `https://myapp.vercel.app` — production
211
+ - `https://*-yourteam.vercel.app` — Vercel preview deploys (wildcard)
212
+ - `https://mycustomdomain.com` — custom domain (if applicable)
213
+
214
+ > **Site URL is the fallback.** If the `redirectTo` sent by your app doesn't match any entry in Redirect URLs, Supabase falls back to Site URL. If Site URL is `localhost:3000`, your deployed app will redirect to localhost after OAuth. **Always set Site URL to production.**
215
+
216
+ ---
217
+
195
218
  ## Custom Domain
196
219
 
197
220
  1. Vercel Dashboard → Settings → Domains
198
221
  2. Add your domain
199
222
  3. Update DNS records as instructed by Vercel
200
223
  4. If using Firebase Auth: update your `FIREBASE_AUTH_DOMAIN` env var to your custom domain
224
+ 5. If using Supabase Auth: add your custom domain to **Supabase Dashboard → Authentication → Redirect URLs** and update **Site URL**
201
225
 
202
226
  ---
203
227
 
@@ -38,7 +38,6 @@
38
38
  --card-foreground: #f97316;
39
39
  --popover: #000000;
40
40
  --popover-foreground: #ffffff;
41
- --surface-1: #0a0a0a;
42
41
 
43
42
  /* 4. Text on Colors */
44
43
  --primary-foreground: #ffffff;
@@ -139,7 +138,6 @@
139
138
  --card-foreground: #1c1917;
140
139
  --popover: #ffffff;
141
140
  --popover-foreground: #1c1917;
142
- --surface-1: #faf8f5;
143
141
 
144
142
  /* 4. Text on Colors */
145
143
  --primary-foreground: #ffffff;
@@ -206,7 +204,6 @@
206
204
  --card-foreground: #c8e6c9;
207
205
  --popover: #222228;
208
206
  --popover-foreground: #c8e6c9;
209
- --surface-1: #1e1e24;
210
207
 
211
208
  /* 4. Text on Colors */
212
209
  --primary-foreground: #0f172a;