@donotdev/cli 0.0.24 → 0.0.25
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.
- package/dependencies-matrix.json +4 -4
- package/dist/bin/commands/agent-setup.js +2 -2
- package/dist/bin/commands/build.js +1 -1
- package/dist/bin/commands/bump.js +1 -1
- package/dist/bin/commands/cacheout.js +1 -1
- package/dist/bin/commands/coach.js +1 -1
- package/dist/bin/commands/create-app.js +1 -1
- package/dist/bin/commands/create-project.js +1 -1
- package/dist/bin/commands/db.js +1 -1
- package/dist/bin/commands/deploy.js +10 -5
- package/dist/bin/commands/dev.js +1 -1
- package/dist/bin/commands/doctor.js +1 -1
- package/dist/bin/commands/emu.js +1 -1
- package/dist/bin/commands/format.js +2 -2
- package/dist/bin/commands/get-demo.js +1 -1
- package/dist/bin/commands/make-admin.js +1 -1
- package/dist/bin/commands/preview.js +1 -1
- package/dist/bin/commands/seed.js +1 -1
- package/dist/bin/commands/setup-cicd.js +1 -1
- package/dist/bin/commands/setup.js +5 -5
- package/dist/bin/commands/staging.js +10 -5
- package/dist/bin/commands/sync-secrets.js +1 -1
- package/dist/bin/commands/type-check.js +1 -1
- package/dist/bin/commands/wai.js +1 -1
- package/dist/bin/dndev.js +1 -1
- package/dist/index.js +11 -6
- package/package.json +1 -1
- package/templates/root-consumer/.cursor/mcp.json.example +1 -1
- package/templates/root-consumer/.gemini/settings.json.example +1 -1
- package/templates/root-consumer/.mcp.json.example +1 -1
- package/templates/root-consumer/bunfig.toml.example +2 -6
- package/templates/root-consumer/vercel.json.example +2 -1
package/dependencies-matrix.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "./dependencies-matrix.schema.json",
|
|
3
3
|
"version": "0.0.6",
|
|
4
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-
|
|
5
|
+
"lastUpdated": "2026-03-04",
|
|
6
6
|
"migrationGuides": {
|
|
7
7
|
"0.0→0.1": {
|
|
8
8
|
"path": "docs/migration/v0.0-to-v0.1.md",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@donotdev/ui": {
|
|
72
72
|
"description": "UI and routing package",
|
|
73
73
|
"packages": {
|
|
74
|
-
"@donotdev/ui": "^0.0.
|
|
74
|
+
"@donotdev/ui": "^0.0.21"
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
"@donotdev/expo": {
|
|
@@ -418,13 +418,13 @@
|
|
|
418
418
|
"@donotdev/cli": {
|
|
419
419
|
"description": "Cli package",
|
|
420
420
|
"packages": {
|
|
421
|
-
"@donotdev/cli": "^0.0.
|
|
421
|
+
"@donotdev/cli": "^0.0.25"
|
|
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.
|
|
427
|
+
"@donotdev/mcp-server": "^0.0.12"
|
|
428
428
|
}
|
|
429
429
|
},
|
|
430
430
|
"mcp-sdk": {
|
|
@@ -492,7 +492,7 @@ var init_cli_output = __esm({
|
|
|
492
492
|
|
|
493
493
|
// packages/tooling/src/bundler/utils.ts
|
|
494
494
|
import { Buffer } from "node:buffer";
|
|
495
|
-
import { readFileSync, writeFileSync, mkdirSync } from "node:fs";
|
|
495
|
+
import { copyFileSync, readFileSync, writeFileSync, mkdirSync } from "node:fs";
|
|
496
496
|
import { createRequire } from "node:module";
|
|
497
497
|
import { dirname, resolve } from "node:path";
|
|
498
498
|
import process from "node:process";
|
|
@@ -533,7 +533,7 @@ import { join } from "path";
|
|
|
533
533
|
import { existsSync, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "fs";
|
|
534
534
|
var mcpConfig = {
|
|
535
535
|
command: "bunx",
|
|
536
|
-
args: ["@donotdev/mcp-server"]
|
|
536
|
+
args: ["@donotdev/mcp-server@latest"]
|
|
537
537
|
};
|
|
538
538
|
function readJsonConfig(path, fallback) {
|
|
539
539
|
try {
|
|
@@ -7827,7 +7827,7 @@ var init_typed_file_operations = __esm({
|
|
|
7827
7827
|
|
|
7828
7828
|
// packages/tooling/src/bundler/utils.ts
|
|
7829
7829
|
import { Buffer } from "node:buffer";
|
|
7830
|
-
import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7830
|
+
import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7831
7831
|
import { createRequire as createRequire3 } from "node:module";
|
|
7832
7832
|
import { dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
7833
7833
|
import process from "node:process";
|
|
@@ -7906,7 +7906,7 @@ var init_pathResolver = __esm({
|
|
|
7906
7906
|
|
|
7907
7907
|
// packages/tooling/src/bundler/utils.ts
|
|
7908
7908
|
import { Buffer } from "node:buffer";
|
|
7909
|
-
import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7909
|
+
import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7910
7910
|
import { createRequire as createRequire3 } from "node:module";
|
|
7911
7911
|
import { dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
7912
7912
|
import process from "node:process";
|
|
@@ -7422,7 +7422,7 @@ var init_pathResolver = __esm({
|
|
|
7422
7422
|
|
|
7423
7423
|
// packages/tooling/src/bundler/utils.ts
|
|
7424
7424
|
import { Buffer } from "node:buffer";
|
|
7425
|
-
import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7425
|
+
import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7426
7426
|
import { createRequire as createRequire3 } from "node:module";
|
|
7427
7427
|
import { dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
7428
7428
|
import process from "node:process";
|
|
@@ -7434,7 +7434,7 @@ var init_typed_file_operations = __esm({
|
|
|
7434
7434
|
|
|
7435
7435
|
// packages/tooling/src/bundler/utils.ts
|
|
7436
7436
|
import { Buffer } from "node:buffer";
|
|
7437
|
-
import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7437
|
+
import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7438
7438
|
import { createRequire as createRequire3 } from "node:module";
|
|
7439
7439
|
import { dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
7440
7440
|
import process from "node:process";
|
|
@@ -8151,7 +8151,7 @@ var init_pathResolver = __esm({
|
|
|
8151
8151
|
|
|
8152
8152
|
// packages/tooling/src/bundler/utils.ts
|
|
8153
8153
|
import { Buffer } from "node:buffer";
|
|
8154
|
-
import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
8154
|
+
import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
8155
8155
|
import { createRequire as createRequire3 } from "node:module";
|
|
8156
8156
|
import { dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
8157
8157
|
import process from "node:process";
|
|
@@ -8334,7 +8334,7 @@ var init_typed_file_operations = __esm({
|
|
|
8334
8334
|
|
|
8335
8335
|
// packages/tooling/src/bundler/utils.ts
|
|
8336
8336
|
import { Buffer } from "node:buffer";
|
|
8337
|
-
import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
8337
|
+
import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
8338
8338
|
import { createRequire as createRequire3 } from "node:module";
|
|
8339
8339
|
import { dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
8340
8340
|
import process from "node:process";
|
package/dist/bin/commands/db.js
CHANGED
|
@@ -8247,7 +8247,7 @@ var init_typed_file_operations = __esm({
|
|
|
8247
8247
|
|
|
8248
8248
|
// packages/tooling/src/bundler/utils.ts
|
|
8249
8249
|
import { Buffer } from "node:buffer";
|
|
8250
|
-
import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
8250
|
+
import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
8251
8251
|
import { createRequire as createRequire3 } from "node:module";
|
|
8252
8252
|
import { dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
8253
8253
|
import process from "node:process";
|
|
@@ -7971,7 +7971,7 @@ var init_typed_file_operations = __esm({
|
|
|
7971
7971
|
|
|
7972
7972
|
// packages/tooling/src/bundler/utils.ts
|
|
7973
7973
|
import { Buffer } from "node:buffer";
|
|
7974
|
-
import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7974
|
+
import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7975
7975
|
import { createRequire as createRequire3 } from "node:module";
|
|
7976
7976
|
import { dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
7977
7977
|
import process from "node:process";
|
|
@@ -8107,7 +8107,7 @@ function checkCLI(command, args = ["--version"], useCache = true) {
|
|
|
8107
8107
|
}
|
|
8108
8108
|
);
|
|
8109
8109
|
} else {
|
|
8110
|
-
result = spawnSync2(command
|
|
8110
|
+
result = spawnSync2(`${command} ${args.join(" ")}`, {
|
|
8111
8111
|
stdio: "pipe",
|
|
8112
8112
|
shell: true
|
|
8113
8113
|
});
|
|
@@ -16568,7 +16568,10 @@ function executeFirebaseCommand(args, options) {
|
|
|
16568
16568
|
env: deployEnv
|
|
16569
16569
|
};
|
|
16570
16570
|
let result;
|
|
16571
|
-
result = spawnSync(
|
|
16571
|
+
result = spawnSync(`firebase ${args.join(" ")}`, {
|
|
16572
|
+
...spawnOptions,
|
|
16573
|
+
shell: true
|
|
16574
|
+
});
|
|
16572
16575
|
if (result.error) {
|
|
16573
16576
|
return {
|
|
16574
16577
|
success: false,
|
|
@@ -16844,7 +16847,9 @@ async function deployVercelFrontend(appDir, _config) {
|
|
|
16844
16847
|
log.debug("Using Vercel REST API (token-based, no CLI)");
|
|
16845
16848
|
log.info(`Vercel org: ${orgId}`);
|
|
16846
16849
|
log.info(`Vercel project: ${projectId}`);
|
|
16847
|
-
log.info(
|
|
16850
|
+
log.info(
|
|
16851
|
+
`Token: ${token.slice(0, 6)}...${token.slice(-4)} (${token.length} chars)`
|
|
16852
|
+
);
|
|
16848
16853
|
log.info("Collecting dist/ files...");
|
|
16849
16854
|
const files = await collectDistFiles(distDir);
|
|
16850
16855
|
if (files.length === 0) {
|
|
@@ -17548,7 +17553,7 @@ How to fix:
|
|
|
17548
17553
|
if (shouldOpen) {
|
|
17549
17554
|
try {
|
|
17550
17555
|
const openCommand = process.platform === "win32" ? "start" : process.platform === "darwin" ? "open" : "xdg-open";
|
|
17551
|
-
spawnSync4(openCommand
|
|
17556
|
+
spawnSync4(`${openCommand} ${consoleUrl}`, { shell: true });
|
|
17552
17557
|
log.success("Opening Firebase Console...");
|
|
17553
17558
|
} catch {
|
|
17554
17559
|
log.warn("Could not open browser. Please open the URL manually.");
|
package/dist/bin/commands/dev.js
CHANGED
|
@@ -7717,7 +7717,7 @@ var init_typed_file_operations = __esm({
|
|
|
7717
7717
|
|
|
7718
7718
|
// packages/tooling/src/bundler/utils.ts
|
|
7719
7719
|
import { Buffer } from "node:buffer";
|
|
7720
|
-
import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7720
|
+
import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7721
7721
|
import { createRequire as createRequire3 } from "node:module";
|
|
7722
7722
|
import { dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
7723
7723
|
import process from "node:process";
|
|
@@ -7449,7 +7449,7 @@ var init_typed_file_operations = __esm({
|
|
|
7449
7449
|
|
|
7450
7450
|
// packages/tooling/src/bundler/utils.ts
|
|
7451
7451
|
import { Buffer } from "node:buffer";
|
|
7452
|
-
import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7452
|
+
import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7453
7453
|
import { createRequire as createRequire3 } from "node:module";
|
|
7454
7454
|
import { dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
7455
7455
|
import process from "node:process";
|
package/dist/bin/commands/emu.js
CHANGED
|
@@ -7819,7 +7819,7 @@ var init_typed_file_operations = __esm({
|
|
|
7819
7819
|
|
|
7820
7820
|
// packages/tooling/src/bundler/utils.ts
|
|
7821
7821
|
import { Buffer } from "node:buffer";
|
|
7822
|
-
import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7822
|
+
import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7823
7823
|
import { createRequire as createRequire3 } from "node:module";
|
|
7824
7824
|
import { dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
7825
7825
|
import process from "node:process";
|
|
@@ -7399,7 +7399,7 @@ var init_pathResolver = __esm({
|
|
|
7399
7399
|
|
|
7400
7400
|
// packages/tooling/src/bundler/utils.ts
|
|
7401
7401
|
import { Buffer } from "node:buffer";
|
|
7402
|
-
import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7402
|
+
import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7403
7403
|
import { createRequire as createRequire3 } from "node:module";
|
|
7404
7404
|
import { dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
7405
7405
|
import process from "node:process";
|
|
@@ -7918,7 +7918,7 @@ async function runPrettier(rootDir, dryRun, verbose) {
|
|
|
7918
7918
|
log.info("DRY RUN: Would run Prettier");
|
|
7919
7919
|
return stats;
|
|
7920
7920
|
}
|
|
7921
|
-
const result = spawnSync(
|
|
7921
|
+
const result = spawnSync(`bunx ${prettierArgs.join(" ")}`, {
|
|
7922
7922
|
cwd: rootDir,
|
|
7923
7923
|
stdio: "pipe",
|
|
7924
7924
|
shell: true,
|
|
@@ -7750,7 +7750,7 @@ var init_pathResolver = __esm({
|
|
|
7750
7750
|
|
|
7751
7751
|
// packages/tooling/src/bundler/utils.ts
|
|
7752
7752
|
import { Buffer } from "node:buffer";
|
|
7753
|
-
import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7753
|
+
import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7754
7754
|
import { createRequire as createRequire3 } from "node:module";
|
|
7755
7755
|
import { dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
7756
7756
|
import process from "node:process";
|
|
@@ -7884,7 +7884,7 @@ var init_typed_file_operations = __esm({
|
|
|
7884
7884
|
|
|
7885
7885
|
// packages/tooling/src/bundler/utils.ts
|
|
7886
7886
|
import { Buffer } from "node:buffer";
|
|
7887
|
-
import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7887
|
+
import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7888
7888
|
import { createRequire as createRequire3 } from "node:module";
|
|
7889
7889
|
import { dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
7890
7890
|
import process from "node:process";
|
|
@@ -7717,7 +7717,7 @@ var init_typed_file_operations = __esm({
|
|
|
7717
7717
|
|
|
7718
7718
|
// packages/tooling/src/bundler/utils.ts
|
|
7719
7719
|
import { Buffer } from "node:buffer";
|
|
7720
|
-
import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7720
|
+
import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7721
7721
|
import { createRequire as createRequire3 } from "node:module";
|
|
7722
7722
|
import { dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
7723
7723
|
import process from "node:process";
|
|
@@ -8247,7 +8247,7 @@ var init_typed_file_operations = __esm({
|
|
|
8247
8247
|
|
|
8248
8248
|
// packages/tooling/src/bundler/utils.ts
|
|
8249
8249
|
import { Buffer } from "node:buffer";
|
|
8250
|
-
import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
8250
|
+
import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
8251
8251
|
import { createRequire as createRequire3 } from "node:module";
|
|
8252
8252
|
import { dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
8253
8253
|
import process from "node:process";
|
|
@@ -7853,7 +7853,7 @@ var init_typed_file_operations = __esm({
|
|
|
7853
7853
|
|
|
7854
7854
|
// packages/tooling/src/bundler/utils.ts
|
|
7855
7855
|
import { Buffer } from "node:buffer";
|
|
7856
|
-
import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7856
|
+
import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7857
7857
|
import { createRequire as createRequire3 } from "node:module";
|
|
7858
7858
|
import { dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
7859
7859
|
import process from "node:process";
|
|
@@ -8035,7 +8035,7 @@ var init_typed_file_operations = __esm({
|
|
|
8035
8035
|
|
|
8036
8036
|
// packages/tooling/src/bundler/utils.ts
|
|
8037
8037
|
import { Buffer } from "node:buffer";
|
|
8038
|
-
import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
8038
|
+
import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
8039
8039
|
import { createRequire as createRequire3 } from "node:module";
|
|
8040
8040
|
import { dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
8041
8041
|
import process from "node:process";
|
|
@@ -8516,7 +8516,7 @@ __export(firebase_exports, {
|
|
|
8516
8516
|
});
|
|
8517
8517
|
import { spawnSync } from "node:child_process";
|
|
8518
8518
|
function firebaseJson(args) {
|
|
8519
|
-
const result = spawnSync(
|
|
8519
|
+
const result = spawnSync(`firebase ${[...args, "--json"].join(" ")}`, {
|
|
8520
8520
|
stdio: ["inherit", "pipe", "pipe"],
|
|
8521
8521
|
shell: true,
|
|
8522
8522
|
encoding: "utf-8"
|
|
@@ -8533,7 +8533,7 @@ function firebaseJson(args) {
|
|
|
8533
8533
|
}
|
|
8534
8534
|
function isFirebaseLoggedIn() {
|
|
8535
8535
|
try {
|
|
8536
|
-
const result = spawnSync("firebase
|
|
8536
|
+
const result = spawnSync("firebase projects:list --json", {
|
|
8537
8537
|
stdio: ["inherit", "pipe", "pipe"],
|
|
8538
8538
|
shell: true,
|
|
8539
8539
|
encoding: "utf-8",
|
|
@@ -8548,7 +8548,7 @@ function isFirebaseLoggedIn() {
|
|
|
8548
8548
|
}
|
|
8549
8549
|
function isFirebaseInstalled() {
|
|
8550
8550
|
try {
|
|
8551
|
-
const result = spawnSync("firebase
|
|
8551
|
+
const result = spawnSync("firebase --version", {
|
|
8552
8552
|
stdio: "pipe",
|
|
8553
8553
|
shell: true,
|
|
8554
8554
|
encoding: "utf-8"
|
|
@@ -8566,7 +8566,7 @@ async function checkPrerequisites() {
|
|
|
8566
8566
|
}
|
|
8567
8567
|
if (!isFirebaseLoggedIn()) {
|
|
8568
8568
|
log.warn("Not logged into Firebase. Running firebase login...");
|
|
8569
|
-
const result = spawnSync("firebase
|
|
8569
|
+
const result = spawnSync("firebase login", {
|
|
8570
8570
|
stdio: "inherit",
|
|
8571
8571
|
shell: true
|
|
8572
8572
|
});
|
|
@@ -7971,7 +7971,7 @@ var init_typed_file_operations = __esm({
|
|
|
7971
7971
|
|
|
7972
7972
|
// packages/tooling/src/bundler/utils.ts
|
|
7973
7973
|
import { Buffer } from "node:buffer";
|
|
7974
|
-
import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7974
|
+
import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7975
7975
|
import { createRequire as createRequire3 } from "node:module";
|
|
7976
7976
|
import { dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
7977
7977
|
import process from "node:process";
|
|
@@ -8107,7 +8107,7 @@ function checkCLI(command, args = ["--version"], useCache = true) {
|
|
|
8107
8107
|
}
|
|
8108
8108
|
);
|
|
8109
8109
|
} else {
|
|
8110
|
-
result = spawnSync2(command
|
|
8110
|
+
result = spawnSync2(`${command} ${args.join(" ")}`, {
|
|
8111
8111
|
stdio: "pipe",
|
|
8112
8112
|
shell: true
|
|
8113
8113
|
});
|
|
@@ -16568,7 +16568,10 @@ function executeFirebaseCommand(args, options) {
|
|
|
16568
16568
|
env: deployEnv
|
|
16569
16569
|
};
|
|
16570
16570
|
let result;
|
|
16571
|
-
result = spawnSync(
|
|
16571
|
+
result = spawnSync(`firebase ${args.join(" ")}`, {
|
|
16572
|
+
...spawnOptions,
|
|
16573
|
+
shell: true
|
|
16574
|
+
});
|
|
16572
16575
|
if (result.error) {
|
|
16573
16576
|
return {
|
|
16574
16577
|
success: false,
|
|
@@ -16844,7 +16847,9 @@ async function deployVercelFrontend(appDir, _config) {
|
|
|
16844
16847
|
log.debug("Using Vercel REST API (token-based, no CLI)");
|
|
16845
16848
|
log.info(`Vercel org: ${orgId}`);
|
|
16846
16849
|
log.info(`Vercel project: ${projectId}`);
|
|
16847
|
-
log.info(
|
|
16850
|
+
log.info(
|
|
16851
|
+
`Token: ${token.slice(0, 6)}...${token.slice(-4)} (${token.length} chars)`
|
|
16852
|
+
);
|
|
16848
16853
|
log.info("Collecting dist/ files...");
|
|
16849
16854
|
const files = await collectDistFiles(distDir);
|
|
16850
16855
|
if (files.length === 0) {
|
|
@@ -17548,7 +17553,7 @@ How to fix:
|
|
|
17548
17553
|
if (shouldOpen) {
|
|
17549
17554
|
try {
|
|
17550
17555
|
const openCommand = process.platform === "win32" ? "start" : process.platform === "darwin" ? "open" : "xdg-open";
|
|
17551
|
-
spawnSync4(openCommand
|
|
17556
|
+
spawnSync4(`${openCommand} ${consoleUrl}`, { shell: true });
|
|
17552
17557
|
log.success("Opening Firebase Console...");
|
|
17553
17558
|
} catch {
|
|
17554
17559
|
log.warn("Could not open browser. Please open the URL manually.");
|
|
@@ -7717,7 +7717,7 @@ var init_pathResolver = __esm({
|
|
|
7717
7717
|
|
|
7718
7718
|
// packages/tooling/src/bundler/utils.ts
|
|
7719
7719
|
import { Buffer } from "node:buffer";
|
|
7720
|
-
import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7720
|
+
import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7721
7721
|
import { createRequire as createRequire3 } from "node:module";
|
|
7722
7722
|
import { dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
7723
7723
|
import process from "node:process";
|
|
@@ -7536,7 +7536,7 @@ var init_pathResolver = __esm({
|
|
|
7536
7536
|
|
|
7537
7537
|
// packages/tooling/src/bundler/utils.ts
|
|
7538
7538
|
import { Buffer } from "node:buffer";
|
|
7539
|
-
import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7539
|
+
import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7540
7540
|
import { createRequire as createRequire3 } from "node:module";
|
|
7541
7541
|
import { dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
7542
7542
|
import process from "node:process";
|
package/dist/bin/commands/wai.js
CHANGED
|
@@ -7248,7 +7248,7 @@ var init_pathResolver = __esm({
|
|
|
7248
7248
|
|
|
7249
7249
|
// packages/tooling/src/bundler/utils.ts
|
|
7250
7250
|
import { Buffer } from "node:buffer";
|
|
7251
|
-
import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7251
|
+
import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
7252
7252
|
import { createRequire as createRequire3 } from "node:module";
|
|
7253
7253
|
import { dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
7254
7254
|
import process from "node:process";
|
package/dist/bin/dndev.js
CHANGED
|
@@ -858,7 +858,7 @@ function registerCommand(program2, def, action) {
|
|
|
858
858
|
}
|
|
859
859
|
|
|
860
860
|
// packages/cli/src/bin/dndev.mjs
|
|
861
|
-
var CLI_VERSION = true ? "0.0.
|
|
861
|
+
var CLI_VERSION = true ? "0.0.25" : "0.0.0";
|
|
862
862
|
var args = process.argv.slice(2);
|
|
863
863
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v")) {
|
|
864
864
|
console.log(CLI_VERSION);
|
package/dist/index.js
CHANGED
|
@@ -8492,7 +8492,7 @@ var init_typed_file_operations = __esm({
|
|
|
8492
8492
|
|
|
8493
8493
|
// packages/tooling/src/bundler/utils.ts
|
|
8494
8494
|
import { Buffer } from "node:buffer";
|
|
8495
|
-
import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
8495
|
+
import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
|
|
8496
8496
|
import { createRequire as createRequire3 } from "node:module";
|
|
8497
8497
|
import { dirname as dirname3, resolve as resolve3 } from "node:path";
|
|
8498
8498
|
import process from "node:process";
|
|
@@ -8788,7 +8788,7 @@ function checkCLI(command, args = ["--version"], useCache = true) {
|
|
|
8788
8788
|
}
|
|
8789
8789
|
);
|
|
8790
8790
|
} else {
|
|
8791
|
-
result = spawnSync5(command
|
|
8791
|
+
result = spawnSync5(`${command} ${args.join(" ")}`, {
|
|
8792
8792
|
stdio: "pipe",
|
|
8793
8793
|
shell: true
|
|
8794
8794
|
});
|
|
@@ -17490,7 +17490,10 @@ function executeFirebaseCommand(args, options) {
|
|
|
17490
17490
|
env: deployEnv
|
|
17491
17491
|
};
|
|
17492
17492
|
let result;
|
|
17493
|
-
result = spawnSync2(
|
|
17493
|
+
result = spawnSync2(`firebase ${args.join(" ")}`, {
|
|
17494
|
+
...spawnOptions,
|
|
17495
|
+
shell: true
|
|
17496
|
+
});
|
|
17494
17497
|
if (result.error) {
|
|
17495
17498
|
return {
|
|
17496
17499
|
success: false,
|
|
@@ -19030,7 +19033,9 @@ async function deployVercelFrontend(appDir, _config) {
|
|
|
19030
19033
|
log.debug("Using Vercel REST API (token-based, no CLI)");
|
|
19031
19034
|
log.info(`Vercel org: ${orgId}`);
|
|
19032
19035
|
log.info(`Vercel project: ${projectId}`);
|
|
19033
|
-
log.info(
|
|
19036
|
+
log.info(
|
|
19037
|
+
`Token: ${token.slice(0, 6)}...${token.slice(-4)} (${token.length} chars)`
|
|
19038
|
+
);
|
|
19034
19039
|
log.info("Collecting dist/ files...");
|
|
19035
19040
|
const files = await collectDistFiles(distDir);
|
|
19036
19041
|
if (files.length === 0) {
|
|
@@ -19734,7 +19739,7 @@ How to fix:
|
|
|
19734
19739
|
if (shouldOpen) {
|
|
19735
19740
|
try {
|
|
19736
19741
|
const openCommand = process.platform === "win32" ? "start" : process.platform === "darwin" ? "open" : "xdg-open";
|
|
19737
|
-
spawnSync7(openCommand
|
|
19742
|
+
spawnSync7(`${openCommand} ${consoleUrl}`, { shell: true });
|
|
19738
19743
|
log.success("Opening Firebase Console...");
|
|
19739
19744
|
} catch {
|
|
19740
19745
|
log.warn("Could not open browser. Please open the URL manually.");
|
|
@@ -21974,7 +21979,7 @@ async function runPrettier(rootDir, dryRun, verbose) {
|
|
|
21974
21979
|
log.info("DRY RUN: Would run Prettier");
|
|
21975
21980
|
return stats;
|
|
21976
21981
|
}
|
|
21977
|
-
const result = spawnSync9(
|
|
21982
|
+
const result = spawnSync9(`bunx ${prettierArgs.join(" ")}`, {
|
|
21978
21983
|
cwd: rootDir,
|
|
21979
21984
|
stdio: "pipe",
|
|
21980
21985
|
shell: true,
|
package/package.json
CHANGED
|
@@ -34,12 +34,8 @@ publicHoistPattern = [
|
|
|
34
34
|
"path-to-regexp"
|
|
35
35
|
]
|
|
36
36
|
|
|
37
|
-
# Cache configuration
|
|
38
|
-
cache =
|
|
39
|
-
|
|
40
|
-
# Security scanning (optional - requires installation)
|
|
41
|
-
# [install.security]
|
|
42
|
-
# scanner = "@socketsecurity/bun-security-scanner"
|
|
37
|
+
# Cache configuration — disabled to prevent stale resolution
|
|
38
|
+
cache = false
|
|
43
39
|
|
|
44
40
|
[run]
|
|
45
41
|
# Use Bun runtime for scripts (significantly faster than Node.js)
|