@donotdev/cli 0.0.27 → 0.0.29

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.
@@ -58878,7 +58878,7 @@ __export(supabase_management_exports, {
58878
58878
  extractProjectRef: () => extractProjectRef,
58879
58879
  tableExists: () => tableExists
58880
58880
  });
58881
- import { execSync } from "node:child_process";
58881
+ import { execSync, spawnSync } from "node:child_process";
58882
58882
  function createAdminClient(supabaseUrl, secretKey) {
58883
58883
  return createClient(supabaseUrl, secretKey, {
58884
58884
  auth: {
@@ -58988,13 +58988,16 @@ async function deployEdgeFunction(options) {
58988
58988
  try {
58989
58989
  const cmd = getSupabaseCmd();
58990
58990
  const projectDir = joinPath(supabaseDir, "..");
58991
- execSync(`${cmd} functions deploy ${functionName}`, {
58991
+ const result = spawnSync(cmd, ["functions", "deploy", functionName], {
58992
58992
  cwd: projectDir,
58993
58993
  stdio: "pipe",
58994
58994
  env: {
58995
58995
  ...process.env
58996
58996
  }
58997
58997
  });
58998
+ if (result.status !== 0) {
58999
+ throw new Error(result.stderr?.toString() || "Deploy failed");
59000
+ }
58998
59001
  } catch (error2) {
58999
59002
  const message = error2 instanceof Error ? error2.message : String(error2);
59000
59003
  throw new Error(`Failed to deploy Edge Function: ${message}`);
@@ -8615,9 +8615,8 @@ __export(firebase_exports, {
8615
8615
  });
8616
8616
  import { spawnSync } from "node:child_process";
8617
8617
  function firebaseJson(args) {
8618
- const result = spawnSync(`firebase ${[...args, "--json"].join(" ")}`, {
8618
+ const result = spawnSync("firebase", [...args, "--json"], {
8619
8619
  stdio: ["inherit", "pipe", "pipe"],
8620
- shell: true,
8621
8620
  encoding: "utf-8"
8622
8621
  });
8623
8622
  if (result.error) {
@@ -8632,9 +8631,8 @@ function firebaseJson(args) {
8632
8631
  }
8633
8632
  function isFirebaseLoggedIn() {
8634
8633
  try {
8635
- const result = spawnSync("firebase projects:list --json", {
8634
+ const result = spawnSync("firebase", ["projects:list", "--json"], {
8636
8635
  stdio: ["inherit", "pipe", "pipe"],
8637
- shell: true,
8638
8636
  encoding: "utf-8",
8639
8637
  timeout: 15e3
8640
8638
  });
@@ -9111,7 +9109,7 @@ var init_firebase = __esm({
9111
9109
  });
9112
9110
 
9113
9111
  // packages/tooling/src/utils/supabase-management.ts
9114
- import { execSync } from "node:child_process";
9112
+ import { execSync, spawnSync as spawnSync2 } from "node:child_process";
9115
9113
  function extractProjectRef(supabaseUrl) {
9116
9114
  const match = supabaseUrl.match(/https?:\/\/([a-z0-9]+)\.supabase\.co/);
9117
9115
  if (!match?.[1]) {
@@ -16543,7 +16543,7 @@ var deploy_supabase_functions_exports = {};
16543
16543
  __export(deploy_supabase_functions_exports, {
16544
16544
  deploySupabaseFunctions: () => deploySupabaseFunctions
16545
16545
  });
16546
- import { execSync as execSync3 } from "node:child_process";
16546
+ import { spawnSync as spawnSync6 } from "node:child_process";
16547
16547
  async function deploySupabaseFunctions(appDir, config) {
16548
16548
  const supabaseDir = joinPath(appDir, "supabase");
16549
16549
  const functionsDir = joinPath(supabaseDir, "functions");
@@ -16578,7 +16578,7 @@ async function deploySupabaseFunctions(appDir, config) {
16578
16578
  for (const functionName of functionDirs) {
16579
16579
  s.start(`Deploying Edge Function: ${functionName}...`);
16580
16580
  try {
16581
- execSync3(`supabase functions deploy ${functionName}`, {
16581
+ const result = spawnSync6("supabase", ["functions", "deploy", functionName], {
16582
16582
  cwd: supabaseDir,
16583
16583
  stdio: config.verbose ? "inherit" : "pipe",
16584
16584
  env: {
@@ -16586,6 +16586,9 @@ async function deploySupabaseFunctions(appDir, config) {
16586
16586
  DNDEV_APP_ROOT: appDir
16587
16587
  }
16588
16588
  });
16589
+ if (result.status !== 0) {
16590
+ throw new Error(result.stderr?.toString() || "Deploy failed");
16591
+ }
16589
16592
  s.stop(`Deployed: ${functionName}`);
16590
16593
  } catch (error2) {
16591
16594
  s.stop(`Failed to deploy: ${functionName}`);
@@ -16752,7 +16755,7 @@ function safeRemove(path, options = {}) {
16752
16755
 
16753
16756
  // packages/tooling/src/apps/deploy.ts
16754
16757
  init_utils();
16755
- import { execSync as execSync4 } from "node:child_process";
16758
+ import { execSync as execSync3 } from "node:child_process";
16756
16759
 
16757
16760
  // packages/tooling/src/apps/deploy-frontend.ts
16758
16761
  init_utils();
@@ -18055,7 +18058,7 @@ async function main2(options = {}) {
18055
18058
  isStaging ? "Building (staging mode)..." : "Building application..."
18056
18059
  );
18057
18060
  try {
18058
- execSync4(buildCmd, {
18061
+ execSync3(buildCmd, {
18059
18062
  cwd: appDir,
18060
18063
  stdio: "inherit",
18061
18064
  env: {
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.27" : "0.0.0";
953
+ var CLI_VERSION = true ? "0.0.29" : "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.26" : "0.0.0";
953
+ var CLI_VERSION = true ? "0.0.29" : "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
@@ -17224,7 +17224,7 @@ var deploy_supabase_functions_exports = {};
17224
17224
  __export(deploy_supabase_functions_exports, {
17225
17225
  deploySupabaseFunctions: () => deploySupabaseFunctions
17226
17226
  });
17227
- import { execSync as execSync9 } from "node:child_process";
17227
+ import { spawnSync as spawnSync9 } from "node:child_process";
17228
17228
  async function deploySupabaseFunctions(appDir, config) {
17229
17229
  const supabaseDir = joinPath(appDir, "supabase");
17230
17230
  const functionsDir = joinPath(supabaseDir, "functions");
@@ -17259,7 +17259,7 @@ async function deploySupabaseFunctions(appDir, config) {
17259
17259
  for (const functionName of functionDirs) {
17260
17260
  s.start(`Deploying Edge Function: ${functionName}...`);
17261
17261
  try {
17262
- execSync9(`supabase functions deploy ${functionName}`, {
17262
+ const result = spawnSync9("supabase", ["functions", "deploy", functionName], {
17263
17263
  cwd: supabaseDir,
17264
17264
  stdio: config.verbose ? "inherit" : "pipe",
17265
17265
  env: {
@@ -17267,6 +17267,9 @@ async function deploySupabaseFunctions(appDir, config) {
17267
17267
  DNDEV_APP_ROOT: appDir
17268
17268
  }
17269
17269
  });
17270
+ if (result.status !== 0) {
17271
+ throw new Error(result.stderr?.toString() || "Deploy failed");
17272
+ }
17270
17273
  s.stop(`Deployed: ${functionName}`);
17271
17274
  } catch (error2) {
17272
17275
  s.stop(`Failed to deploy: ${functionName}`);
@@ -18437,7 +18440,7 @@ async function main4() {
18437
18440
 
18438
18441
  // packages/tooling/src/apps/deploy.ts
18439
18442
  init_utils();
18440
- import { execSync as execSync10 } from "node:child_process";
18443
+ import { execSync as execSync9 } from "node:child_process";
18441
18444
 
18442
18445
  // packages/tooling/src/apps/deploy-frontend.ts
18443
18446
  init_utils();
@@ -20250,7 +20253,7 @@ async function main6(options = {}) {
20250
20253
  isStaging ? "Building (staging mode)..." : "Building application..."
20251
20254
  );
20252
20255
  try {
20253
- execSync10(buildCmd, {
20256
+ execSync9(buildCmd, {
20254
20257
  cwd: appDir,
20255
20258
  stdio: "inherit",
20256
20259
  env: {
@@ -21093,8 +21096,8 @@ async function main9(options) {
21093
21096
  try {
21094
21097
  Ie("\u{1F680} DoNotDev Project Creator");
21095
21098
  try {
21096
- const { execSync: execSync11 } = await import("node:child_process");
21097
- execSync11("bun --version", { stdio: "ignore" });
21099
+ const { execSync: execSync10 } = await import("node:child_process");
21100
+ execSync10("bun --version", { stdio: "ignore" });
21098
21101
  } catch {
21099
21102
  log.error("bun is required but not installed.");
21100
21103
  Me(
@@ -21607,7 +21610,7 @@ init_utils();
21607
21610
  init_cli_output();
21608
21611
  init_errors();
21609
21612
  init_pathResolver();
21610
- import { spawnSync as spawnSync9 } from "node:child_process";
21613
+ import { spawnSync as spawnSync10 } from "node:child_process";
21611
21614
  import { EOL as EOL2 } from "node:os";
21612
21615
  async function main10(options = {}) {
21613
21616
  const dryRun = options.dryRun ?? false;
@@ -22087,7 +22090,7 @@ async function runPrettier(rootDir, dryRun, verbose) {
22087
22090
  log.info("DRY RUN: Would run Prettier");
22088
22091
  return stats;
22089
22092
  }
22090
- const result = spawnSync9(`bunx ${prettierArgs.join(" ")}`, {
22093
+ const result = spawnSync10(`bunx ${prettierArgs.join(" ")}`, {
22091
22094
  cwd: rootDir,
22092
22095
  stdio: "pipe",
22093
22096
  shell: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@donotdev/cli",
3
- "version": "0.0.27",
3
+ "version": "0.0.29",
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,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';
@@ -1,6 +1,6 @@
1
- {
2
- "hero": {
3
- "title": "Welcome to DnDev",
4
- "subtitle": "Your app is ready. Explore the framework patterns below."
5
- }
6
- }
1
+ {
2
+ "hero": {
3
+ "title": "Welcome to DnDev",
4
+ "subtitle": "Your app is ready. Explore the framework patterns below."
5
+ }
6
+ }
@@ -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
  /* ===========================
@@ -1,6 +1,6 @@
1
- {
2
- "hero": {
3
- "title": "Welcome to DnDev",
4
- "subtitle": "Your app is ready. Explore the framework patterns below."
5
- }
6
- }
1
+ {
2
+ "hero": {
3
+ "title": "Welcome to DnDev",
4
+ "subtitle": "Your app is ready. Explore the framework patterns below."
5
+ }
6
+ }
@@ -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;
@@ -2,10 +2,9 @@
2
2
  // Auto-generated by DoNotDev scaffolding. Edit freely.
3
3
  // Import from root layout (app/_layout.tsx): import '../src/config/providers';
4
4
 
5
- import { createClient } from '@supabase/supabase-js';
6
-
7
5
  import { configureProviders } from '@donotdev/core';
8
6
  import {
7
+ createClient,
9
8
  SupabaseAuth,
10
9
  SupabaseCrudAdapter,
11
10
  SupabaseStorageAdapter,
@@ -2,10 +2,9 @@
2
2
  // Auto-generated by DoNotDev scaffolding. Edit freely.
3
3
  // Import from root component (App.tsx): import './config/providers';
4
4
 
5
- import { createClient } from '@supabase/supabase-js';
6
-
7
5
  import { configureProviders } from '@donotdev/core';
8
6
  import {
7
+ createClient,
9
8
  SupabaseAuth,
10
9
  SupabaseCrudAdapter,
11
10
  SupabaseStorageAdapter,