@donotdev/cli 0.0.26 → 0.0.27

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-05",
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.17"
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.15"
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.26"
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.23"
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.19"
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.15"
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.23"
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.8"
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.27"
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": {
@@ -514,11 +514,23 @@
514
514
  "core-vite-config",
515
515
  "postcss"
516
516
  ],
517
- "devDependencies": ["vite", "next", "typescript"]
517
+ "devDependencies": [
518
+ "vite",
519
+ "next",
520
+ "typescript"
521
+ ]
518
522
  },
519
523
  "@donotdev/components": {
520
- "dependencies": ["radix", "styling", "react-day-picker"],
521
- "peerDependencies": ["react", "shiki", "lucide-react"],
524
+ "dependencies": [
525
+ "radix",
526
+ "styling",
527
+ "react-day-picker"
528
+ ],
529
+ "peerDependencies": [
530
+ "react",
531
+ "shiki",
532
+ "lucide-react"
533
+ ],
522
534
  "peerDependenciesMeta": {
523
535
  "shiki": {
524
536
  "optional": true
@@ -529,23 +541,62 @@
529
541
  "peerDependencies": [
530
542
  "react",
531
543
  "lucide-react",
532
- "firebase",
544
+ "@donotdev/auth",
545
+ "@donotdev/billing",
533
546
  "@donotdev/crud",
547
+ "@donotdev/firebase",
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/firebase": {
568
+ "optional": true
569
+ },
570
+ "@donotdev/oauth": {
571
+ "optional": true
572
+ },
573
+ "routing": {
574
+ "optional": true
541
575
  }
542
576
  }
543
577
  },
544
578
  "@donotdev/auth": {
545
- "peerDependencies": ["react", "firebase"]
579
+ "peerDependencies": [
580
+ "react",
581
+ "@donotdev/firebase",
582
+ "@donotdev/supabase"
583
+ ],
584
+ "peerDependenciesMeta": {
585
+ "@donotdev/firebase": {
586
+ "optional": true
587
+ },
588
+ "@donotdev/supabase": {
589
+ "optional": true
590
+ }
591
+ }
546
592
  },
547
593
  "@donotdev/billing": {
548
- "peerDependencies": ["react", "lucide-react", "stripe"]
594
+ "peerDependencies": [
595
+ "react",
596
+ "lucide-react",
597
+ "stripe",
598
+ "@donotdev/auth"
599
+ ]
549
600
  },
550
601
  "@donotdev/crud": {
551
602
  "dependencies": [
@@ -555,7 +606,9 @@
555
606
  "@dnd-kit",
556
607
  "forms-resolvers"
557
608
  ],
558
- "devDependencies": ["tiptap"],
609
+ "devDependencies": [
610
+ "tiptap"
611
+ ],
559
612
  "peerDependencies": [
560
613
  "@donotdev/firebase",
561
614
  "react",
@@ -578,22 +631,38 @@
578
631
  }
579
632
  },
580
633
  "@donotdev/firebase": {
581
- "dependencies": ["browser-image-compression"],
582
- "peerDependencies": ["firebase"]
634
+ "dependencies": [
635
+ "browser-image-compression"
636
+ ],
637
+ "peerDependencies": [
638
+ "firebase"
639
+ ]
583
640
  },
584
641
  "@donotdev/supabase": {
585
- "dependencies": ["validation"],
586
- "peerDependencies": ["supabase-js"]
642
+ "dependencies": [
643
+ "validation"
644
+ ],
645
+ "peerDependencies": [
646
+ "supabase-js"
647
+ ]
587
648
  },
588
649
  "@donotdev/i18n": {
589
- "dependencies": ["i18n"],
590
- "peerDependencies": ["lucide-react"]
650
+ "dependencies": [
651
+ "i18n"
652
+ ],
653
+ "peerDependencies": [
654
+ "lucide-react"
655
+ ]
591
656
  },
592
657
  "@donotdev/stores": {
593
- "dependencies": ["zustand"]
658
+ "dependencies": [
659
+ "zustand"
660
+ ]
594
661
  },
595
662
  "@donotdev/schemas": {
596
- "dependencies": ["validation"]
663
+ "dependencies": [
664
+ "validation"
665
+ ]
597
666
  },
598
667
  "@donotdev/types": {
599
668
  "devDependencies": [
@@ -605,18 +674,34 @@
605
674
  ]
606
675
  },
607
676
  "@donotdev/utils": {
608
- "dependencies": ["zustand"],
609
- "peerDependencies": ["monitoring"],
610
- "devDependencies": ["validation", "firebase", "i18n"]
677
+ "dependencies": [
678
+ "zustand"
679
+ ],
680
+ "peerDependencies": [
681
+ "monitoring"
682
+ ],
683
+ "devDependencies": [
684
+ "validation",
685
+ "firebase",
686
+ "i18n"
687
+ ]
611
688
  },
612
689
  "@donotdev/hooks": {
613
- "dependencies": ["react-query"]
690
+ "dependencies": [
691
+ "react-query"
692
+ ]
614
693
  },
615
694
  "@donotdev/cli": {
616
- "dependencies": ["cli-prompts", "cli-commander", "fast-glob"]
695
+ "dependencies": [
696
+ "cli-prompts",
697
+ "cli-commander",
698
+ "fast-glob"
699
+ ]
617
700
  },
618
701
  "@donotdev/mcp-server": {
619
- "dependencies": ["mcp-sdk"]
702
+ "dependencies": [
703
+ "mcp-sdk"
704
+ ]
620
705
  },
621
706
  "@donotdev/tooling": {
622
707
  "dependencies": [
@@ -628,13 +713,19 @@
628
713
  "supabase-cli",
629
714
  "supabase-js"
630
715
  ],
631
- "devDependencies": ["yaml"]
716
+ "devDependencies": [
717
+ "yaml"
718
+ ]
632
719
  },
633
720
  "@donotdev/oauth": {
634
- "peerDependencies": ["react"]
721
+ "peerDependencies": [
722
+ "react"
723
+ ]
635
724
  },
636
725
  "@donotdev/functions": {
637
- "dependencies": ["@donotdev/core"],
726
+ "dependencies": [
727
+ "@donotdev/core"
728
+ ],
638
729
  "peerDependencies": [
639
730
  "firebase-functions",
640
731
  "firebase-admin",
@@ -806,7 +897,10 @@
806
897
  "validation",
807
898
  "lucide-react"
808
899
  ],
809
- "devDependencies": ["root-consumer-tooling", "supabase-cli"],
900
+ "devDependencies": [
901
+ "root-consumer-tooling",
902
+ "supabase-cli"
903
+ ],
810
904
  "conditional": {
811
905
  "provider-firebase": "platform===firebase",
812
906
  "provider-supabase": "platform===supabase",
@@ -866,7 +960,12 @@
866
960
  "shiki",
867
961
  "tiptap"
868
962
  ],
869
- "devDependencies": ["next", "typescript", "types", "postcss"],
963
+ "devDependencies": [
964
+ "next",
965
+ "typescript",
966
+ "types",
967
+ "postcss"
968
+ ],
870
969
  "conditional": {
871
970
  "provider-firebase": "platform===firebase",
872
971
  "provider-supabase": "platform===supabase"
@@ -886,7 +985,12 @@
886
985
  "validation",
887
986
  "react-query"
888
987
  ],
889
- "devDependencies": ["expo", "typescript", "types-expo", "react-native"],
988
+ "devDependencies": [
989
+ "expo",
990
+ "typescript",
991
+ "types-expo",
992
+ "react-native"
993
+ ],
890
994
  "conditional": {
891
995
  "provider-firebase": "platform===firebase",
892
996
  "provider-supabase": "platform===supabase"
@@ -906,7 +1010,12 @@
906
1010
  "validation",
907
1011
  "react-query"
908
1012
  ],
909
- "devDependencies": ["expo", "typescript", "types-expo", "react-native"],
1013
+ "devDependencies": [
1014
+ "expo",
1015
+ "typescript",
1016
+ "types-expo",
1017
+ "react-native"
1018
+ ],
910
1019
  "conditional": {
911
1020
  "provider-firebase": "platform===firebase",
912
1021
  "provider-supabase": "platform===supabase"
@@ -933,12 +1042,19 @@
933
1042
  "monitoring-node",
934
1043
  "stripe"
935
1044
  ],
936
- "devDependencies": ["vercel"]
1045
+ "devDependencies": [
1046
+ "vercel"
1047
+ ]
937
1048
  },
938
1049
  "entities": {
939
1050
  "description": "Entities workspace package",
940
- "dependencies": ["validation"],
941
- "devDependencies": ["eslint", "typescript"]
1051
+ "dependencies": [
1052
+ "validation"
1053
+ ],
1054
+ "devDependencies": [
1055
+ "eslint",
1056
+ "typescript"
1057
+ ]
942
1058
  },
943
1059
  "demo": {
944
1060
  "description": "Demo app template (SaaS reference app)",
@@ -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.27" : "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.26" : "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.27",
4
4
  "description": "Command-line interface for DoNotDev Framework",
5
5
  "type": "module",
6
6
  "private": false,
@@ -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();
@@ -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