@donotdev/cli 0.3.0 → 0.3.2
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 +51 -27
- package/dist/bin/commands/agent-setup.js +28 -18
- package/dist/bin/commands/build.js +1086 -58
- package/dist/bin/commands/bump.js +337 -53
- package/dist/bin/commands/cacheout.js +28 -18
- package/dist/bin/commands/coach.js +33 -25
- package/dist/bin/commands/create-app.js +597 -244
- package/dist/bin/commands/create-project.js +607 -254
- package/dist/bin/commands/db-check.js +37 -28
- package/dist/bin/commands/db.js +37 -28
- package/dist/bin/commands/deploy.js +13758 -11807
- package/dist/bin/commands/dev.js +50 -34
- package/dist/bin/commands/doctor.js +33 -25
- package/dist/bin/commands/emu.js +65 -43
- package/dist/bin/commands/format.js +28 -18
- package/dist/bin/commands/get-demo.js +81 -46
- package/dist/bin/commands/make-admin.js +966 -896
- package/dist/bin/commands/preview.js +50 -34
- package/dist/bin/commands/seed.js +37 -28
- package/dist/bin/commands/setup-cicd.js +1286 -87
- package/dist/bin/commands/setup.js +152 -138
- package/dist/bin/commands/staging.js +13758 -11807
- package/dist/bin/commands/sync-secrets.js +152 -132
- package/dist/bin/commands/type-check.js +1086 -39
- package/dist/bin/commands/wai.js +28 -18
- package/dist/bin/dndev.js +513 -30
- package/dist/bin/donotdev.js +33 -8
- package/dist/index.js +14568 -12497
- package/package.json +1 -1
- package/templates/app-demo/index.html.example +0 -1
- package/templates/app-demo/src/pages/ConditionalFormPage.tsx.example +2 -2
- package/templates/app-demo/src/pages/ShowcaseDetailPage.tsx.example +1 -0
- package/templates/app-demo/tsconfig.json.example +1 -1
- package/templates/app-dndev/index.html.example +1 -3
- package/templates/app-dndev/src/pages/NotFoundPage.tsx.example +1 -0
- package/templates/app-expo/app/_layout.tsx.example +1 -1
- package/templates/app-expo/app/form.tsx.example +10 -3
- package/templates/app-expo/app/index.tsx.example +3 -3
- package/templates/app-expo/app/list.tsx.example +2 -2
- package/templates/app-expo/app/profile.tsx.example +4 -3
- package/templates/app-expo/app/signin.tsx.example +2 -2
- package/templates/app-expo/babel.config.js.example +23 -6
- package/templates/app-expo/metro.config.js.example +7 -17
- package/templates/app-expo/tsconfig.json.example +2 -1
- package/templates/app-next/src/app/AppDocument.tsx.example +2 -3
- package/templates/app-vite/index.html.example +1 -3
- package/templates/app-vite/src/locales/home_en.json.example +6 -6
- package/templates/app-vite/src/pages/FormPageExample.tsx.example +1 -1
- package/templates/app-vite/src/pages/HomePage.tsx.example +3 -3
- package/templates/app-vite/src/pages/NotFoundPage.tsx.example +1 -0
- package/templates/deploy-config/firebase.json.example +6 -5
- package/templates/deploy-config/tsconfig.functions.json.example +2 -7
- package/templates/deploy-config/vercel.json.example +6 -420
- package/templates/functions-firebase/README.md.example +8 -8
- package/templates/functions-firebase/functions.config.js.example +2 -1
- package/templates/functions-firebase/src/index.ts.example +4 -3
- package/templates/functions-firebase/src/oauth/exchangeToken.ts.example +8 -6
- package/templates/functions-firebase/src/oauth/refreshToken.ts.example +8 -6
- package/templates/functions-firebase/tsconfig.json.example +3 -5
- package/templates/functions-supabase/supabase/config.toml.example +2 -1
- package/templates/functions-supabase/supabase/functions/change-plan/index.ts.example +2 -3
- package/templates/functions-supabase/supabase/functions/create-checkout-session/index.ts.example +2 -3
- package/templates/functions-supabase/supabase/functions/stripe-webhook/index.ts.example +2 -3
- package/templates/functions-vercel/README.md.example +15 -25
- package/templates/functions-vercel/build.mjs.example +4 -46
- package/templates/functions-vercel/src/api/auth/setCustomClaims.ts.example +6 -11
- package/templates/functions-vercel/src/api/billing/handleStripeWebhook.ts.example +2 -3
- package/templates/functions-vercel/src/api/oauth/checkGitHubAccess.ts.example +5 -11
- package/templates/functions-vercel/src/api/oauth/exchangeToken.ts.example +5 -11
- package/templates/functions-vercel/src/api/oauth/grantGitHubAccess.ts.example +5 -11
- package/templates/functions-vercel/tsconfig.json.example +5 -6
- package/templates/github/workflows/firebase-deploy.yml.example +1 -1
- package/templates/preset-admin/src/pages/DashboardPage.tsx.example +3 -2
- package/templates/preset-admin/src/pages/ReportsPage.tsx.example +13 -12
- package/templates/preset-admin/src/pages/SettingsPage.tsx.example +5 -5
- package/templates/preset-admin/src/pages/UsersPage.tsx.example +13 -12
- package/templates/preset-ecommerce/src/pages/CartPage.tsx.example +5 -5
- package/templates/preset-ecommerce/src/pages/CatalogPage.tsx.example +1 -4
- package/templates/preset-ecommerce/src/pages/CheckoutPage.tsx.example +10 -12
- package/templates/preset-ecommerce/src/pages/ProductPage.tsx.example +7 -4
- package/templates/preset-landing/src/pages/AboutPage.tsx.example +11 -9
- package/templates/preset-landing/src/pages/ContactPage.tsx.example +13 -7
- package/templates/preset-landing/src/pages/HomePage.tsx.example +50 -32
- package/templates/preset-saas/src/pages/DashboardPage.tsx.example +1 -1
- package/templates/preset-saas/src/pages/HomePage.tsx.example +3 -2
- package/templates/preset-saas/src/pages/PricingPage.tsx.example +4 -3
- package/templates/preset-saas/src/pages/ProfilePage.tsx.example +7 -7
- package/templates/preset-saas/src/pages/SettingsPage.tsx.example +3 -3
- package/templates/root-consumer/.claude/hooks/guard-bash.sh.example +101 -10
- package/templates/root-consumer/.claude/rules/definition-of-done.md.example +2 -2
- package/templates/root-consumer/.claude/rules/framework.md.example +1 -1
- package/templates/root-consumer/.claude/settings.json.example +0 -11
- package/templates/root-consumer/.claude/skills/build/SKILL.md.example +1 -1
- package/templates/root-consumer/.dndev/args.json.example +2 -2
- package/templates/root-consumer/.env.example +1 -1
- package/templates/root-consumer/.gitignore.example +2 -0
- package/templates/root-consumer/AGENTS.md.example +3 -3
- package/templates/root-consumer/README.md.example +1 -1
- package/templates/app-vite/csp.example.json +0 -44
- package/templates/functions-vercel/src/api/oauth/disconnect.ts.example +0 -20
- package/templates/functions-vercel/src/api/oauth/getConnections.ts.example +0 -20
- package/templates/functions-vercel/src/api/oauth/refreshToken.ts.example +0 -20
- package/templates/functions-vercel/vercel.json.example +0 -14
- package/templates/root-consumer/.claude/hooks/typecheck-stop.sh.example +0 -18
|
@@ -6432,11 +6432,12 @@ function getPatternsFor(type, repoRoot = null) {
|
|
|
6432
6432
|
function getGlobOptionsFor(type) {
|
|
6433
6433
|
return GLOB_OPTIONS[type] || GLOB_OPTIONS.base;
|
|
6434
6434
|
}
|
|
6435
|
-
var I18N_PATHS, SCAN_PATTERNS, GLOB_OPTIONS;
|
|
6435
|
+
var DEFAULT_OG_IMAGE, I18N_PATHS, SCAN_PATTERNS, GLOB_OPTIONS;
|
|
6436
6436
|
var init_constants = __esm({
|
|
6437
6437
|
"packages/core/config/constants.js"() {
|
|
6438
6438
|
"use strict";
|
|
6439
6439
|
init_utils2();
|
|
6440
|
+
DEFAULT_OG_IMAGE = "/og-image.png";
|
|
6440
6441
|
I18N_PATHS = {
|
|
6441
6442
|
// Monorepo source structure (locales at root, not in src/)
|
|
6442
6443
|
SOURCE_ROOT: "packages/core/i18n",
|
|
@@ -6447,7 +6448,9 @@ var init_constants = __esm({
|
|
|
6447
6448
|
PUBLISHED_ROOT: "i18n",
|
|
6448
6449
|
PUBLISHED_LOCALES: "i18n/locales",
|
|
6449
6450
|
PUBLISHED_EAGER: "i18n/locales/eager",
|
|
6450
|
-
PUBLISHED_LAZY: "i18n/locales/lazy"
|
|
6451
|
+
PUBLISHED_LAZY: "i18n/locales/lazy",
|
|
6452
|
+
// Flag artwork: one SVG per flag code (flagFileName), copied to public/flags/ (AssetDiscovery)
|
|
6453
|
+
PUBLISHED_FLAGS: "i18n/flags"
|
|
6451
6454
|
};
|
|
6452
6455
|
SCAN_PATTERNS = {
|
|
6453
6456
|
routes: {
|
|
@@ -6509,7 +6512,12 @@ var init_constants = __esm({
|
|
|
6509
6512
|
"logo.avif",
|
|
6510
6513
|
"apple-touch-icon*.png",
|
|
6511
6514
|
"android-chrome-*.png",
|
|
6512
|
-
|
|
6515
|
+
// Generated from logo.svg (AssetDiscovery._generateMissingAssets) or the app's own
|
|
6516
|
+
"icon-*x*.png",
|
|
6517
|
+
DEFAULT_OG_IMAGE.slice(1)
|
|
6518
|
+
// Not manifest.json: the web app manifest is a build output on Next (the PWA step
|
|
6519
|
+
// rewrites it after this scan), so its scanned size would differ between a clean
|
|
6520
|
+
// build and a rebuild. The asset manifest's `manifest` reads it from disk instead.
|
|
6513
6521
|
],
|
|
6514
6522
|
fonts: ["fonts/**/*.woff2", "fonts/**/*.woff", "fonts/**/*.ttf"],
|
|
6515
6523
|
framework: ["packages/ui/assets/**/*"]
|
|
@@ -6586,7 +6594,6 @@ import {
|
|
|
6586
6594
|
sep,
|
|
6587
6595
|
extname
|
|
6588
6596
|
} from "node:path";
|
|
6589
|
-
import { fileURLToPath } from "node:url";
|
|
6590
6597
|
function isEexistError(error2) {
|
|
6591
6598
|
return typeof error2 === "object" && error2 !== null && "code" in error2 && error2.code === "EEXIST";
|
|
6592
6599
|
}
|
|
@@ -7408,7 +7415,10 @@ var init_PathResolver = __esm({
|
|
|
7408
7415
|
return resolvedPath;
|
|
7409
7416
|
}
|
|
7410
7417
|
/**
|
|
7411
|
-
* Execute fast-glob with normalized results
|
|
7418
|
+
* Execute fast-glob with normalized results, sorted. fast-glob returns files in
|
|
7419
|
+
* filesystem completion order, which varies between runs: every discovery (routes,
|
|
7420
|
+
* themes, i18n, assets) and what it generates (route manifest, sitemap, llms.txt,
|
|
7421
|
+
* proxy) must list the same sources in the same order on every build.
|
|
7412
7422
|
* @private
|
|
7413
7423
|
*/
|
|
7414
7424
|
async _globWithNormalization(patterns, options) {
|
|
@@ -7416,7 +7426,7 @@ var init_PathResolver = __esm({
|
|
|
7416
7426
|
return results.map((path) => {
|
|
7417
7427
|
const pathStr = typeof path === "string" ? path : path.path;
|
|
7418
7428
|
return this.normalizePath(pathStr);
|
|
7419
|
-
});
|
|
7429
|
+
}).sort();
|
|
7420
7430
|
}
|
|
7421
7431
|
/**
|
|
7422
7432
|
* Resolve files using patterns with cross-platform support
|
|
@@ -7571,15 +7581,6 @@ var init_PathResolver = __esm({
|
|
|
7571
7581
|
const cjsPath = this.getEmptyCjsModulePath();
|
|
7572
7582
|
return cjsPath.replace(/\.cjs$/, ".js");
|
|
7573
7583
|
}
|
|
7574
|
-
/**
|
|
7575
|
-
* Get absolute path to empty flag component module.
|
|
7576
|
-
* Returns `export default () => null;` — used by flag filtering plugins
|
|
7577
|
-
* to replace unused flag files at build time.
|
|
7578
|
-
*/
|
|
7579
|
-
getEmptyFlagModulePath() {
|
|
7580
|
-
const __dirname2 = dirname2(fileURLToPath(import.meta.url));
|
|
7581
|
-
return this.normalizePath(resolve(__dirname2, "emptyFlag.js"));
|
|
7582
|
-
}
|
|
7583
7584
|
/**
|
|
7584
7585
|
* Get absolute path to empty CJS module for esbuild pre-bundling.
|
|
7585
7586
|
* CJS because esbuild statically analyzes ESM exports — CJS has dynamic
|
|
@@ -7652,7 +7653,7 @@ import {
|
|
|
7652
7653
|
parse,
|
|
7653
7654
|
isAbsolute as pathIsAbsolute
|
|
7654
7655
|
} from "node:path";
|
|
7655
|
-
import { fileURLToPath
|
|
7656
|
+
import { fileURLToPath } from "node:url";
|
|
7656
7657
|
function readdirSync3(dirPath, options) {
|
|
7657
7658
|
if (options !== null && typeof options === "object" && options.withFileTypes === true) {
|
|
7658
7659
|
return pathResolverInstance.readdirSync(dirPath, options);
|
|
@@ -7714,13 +7715,13 @@ import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFile
|
|
|
7714
7715
|
import { createRequire as createRequire3 } from "node:module";
|
|
7715
7716
|
import { dirname as dirname4, resolve as resolve3 } from "node:path";
|
|
7716
7717
|
import process from "node:process";
|
|
7717
|
-
import { fileURLToPath as
|
|
7718
|
+
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
7718
7719
|
var require2, __filename, __dirname;
|
|
7719
7720
|
var init_utils2 = __esm({
|
|
7720
7721
|
"packages/tooling/src/bundler/utils.ts"() {
|
|
7721
7722
|
"use strict";
|
|
7722
7723
|
require2 = createRequire3(import.meta.url);
|
|
7723
|
-
__filename =
|
|
7724
|
+
__filename = fileURLToPath2(import.meta.url);
|
|
7724
7725
|
__dirname = dirname4(__filename);
|
|
7725
7726
|
if (typeof globalThis !== "undefined") {
|
|
7726
7727
|
globalThis.require = require2;
|
|
@@ -7735,6 +7736,14 @@ var init_utils2 = __esm({
|
|
|
7735
7736
|
}
|
|
7736
7737
|
});
|
|
7737
7738
|
|
|
7739
|
+
// packages/tooling/src/utils/create-utils.ts
|
|
7740
|
+
var init_create_utils = __esm({
|
|
7741
|
+
"packages/tooling/src/utils/create-utils.ts"() {
|
|
7742
|
+
"use strict";
|
|
7743
|
+
init_utils2();
|
|
7744
|
+
}
|
|
7745
|
+
});
|
|
7746
|
+
|
|
7738
7747
|
// packages/cli/src/bin/commands/cacheout.ts
|
|
7739
7748
|
init_utils2();
|
|
7740
7749
|
|
|
@@ -7743,6 +7752,7 @@ init_utils2();
|
|
|
7743
7752
|
|
|
7744
7753
|
// packages/tooling/src/cli/index.ts
|
|
7745
7754
|
init_utils2();
|
|
7755
|
+
init_create_utils();
|
|
7746
7756
|
|
|
7747
7757
|
// packages/tooling/src/maintenance/cacheout.ts
|
|
7748
7758
|
init_utils2();
|
|
@@ -6448,11 +6448,12 @@ function getPatternsFor(type, repoRoot = null) {
|
|
|
6448
6448
|
function getGlobOptionsFor(type) {
|
|
6449
6449
|
return GLOB_OPTIONS[type] || GLOB_OPTIONS.base;
|
|
6450
6450
|
}
|
|
6451
|
-
var I18N_PATHS, SCAN_PATTERNS, GLOB_OPTIONS;
|
|
6451
|
+
var DEFAULT_OG_IMAGE, I18N_PATHS, SCAN_PATTERNS, GLOB_OPTIONS;
|
|
6452
6452
|
var init_constants = __esm({
|
|
6453
6453
|
"packages/core/config/constants.js"() {
|
|
6454
6454
|
"use strict";
|
|
6455
6455
|
init_utils2();
|
|
6456
|
+
DEFAULT_OG_IMAGE = "/og-image.png";
|
|
6456
6457
|
I18N_PATHS = {
|
|
6457
6458
|
// Monorepo source structure (locales at root, not in src/)
|
|
6458
6459
|
SOURCE_ROOT: "packages/core/i18n",
|
|
@@ -6463,7 +6464,9 @@ var init_constants = __esm({
|
|
|
6463
6464
|
PUBLISHED_ROOT: "i18n",
|
|
6464
6465
|
PUBLISHED_LOCALES: "i18n/locales",
|
|
6465
6466
|
PUBLISHED_EAGER: "i18n/locales/eager",
|
|
6466
|
-
PUBLISHED_LAZY: "i18n/locales/lazy"
|
|
6467
|
+
PUBLISHED_LAZY: "i18n/locales/lazy",
|
|
6468
|
+
// Flag artwork: one SVG per flag code (flagFileName), copied to public/flags/ (AssetDiscovery)
|
|
6469
|
+
PUBLISHED_FLAGS: "i18n/flags"
|
|
6467
6470
|
};
|
|
6468
6471
|
SCAN_PATTERNS = {
|
|
6469
6472
|
routes: {
|
|
@@ -6525,7 +6528,12 @@ var init_constants = __esm({
|
|
|
6525
6528
|
"logo.avif",
|
|
6526
6529
|
"apple-touch-icon*.png",
|
|
6527
6530
|
"android-chrome-*.png",
|
|
6528
|
-
|
|
6531
|
+
// Generated from logo.svg (AssetDiscovery._generateMissingAssets) or the app's own
|
|
6532
|
+
"icon-*x*.png",
|
|
6533
|
+
DEFAULT_OG_IMAGE.slice(1)
|
|
6534
|
+
// Not manifest.json: the web app manifest is a build output on Next (the PWA step
|
|
6535
|
+
// rewrites it after this scan), so its scanned size would differ between a clean
|
|
6536
|
+
// build and a rebuild. The asset manifest's `manifest` reads it from disk instead.
|
|
6529
6537
|
],
|
|
6530
6538
|
fonts: ["fonts/**/*.woff2", "fonts/**/*.woff", "fonts/**/*.ttf"],
|
|
6531
6539
|
framework: ["packages/ui/assets/**/*"]
|
|
@@ -6602,7 +6610,6 @@ import {
|
|
|
6602
6610
|
sep,
|
|
6603
6611
|
extname
|
|
6604
6612
|
} from "node:path";
|
|
6605
|
-
import { fileURLToPath } from "node:url";
|
|
6606
6613
|
function isEexistError(error2) {
|
|
6607
6614
|
return typeof error2 === "object" && error2 !== null && "code" in error2 && error2.code === "EEXIST";
|
|
6608
6615
|
}
|
|
@@ -7424,7 +7431,10 @@ var init_PathResolver = __esm({
|
|
|
7424
7431
|
return resolvedPath;
|
|
7425
7432
|
}
|
|
7426
7433
|
/**
|
|
7427
|
-
* Execute fast-glob with normalized results
|
|
7434
|
+
* Execute fast-glob with normalized results, sorted. fast-glob returns files in
|
|
7435
|
+
* filesystem completion order, which varies between runs: every discovery (routes,
|
|
7436
|
+
* themes, i18n, assets) and what it generates (route manifest, sitemap, llms.txt,
|
|
7437
|
+
* proxy) must list the same sources in the same order on every build.
|
|
7428
7438
|
* @private
|
|
7429
7439
|
*/
|
|
7430
7440
|
async _globWithNormalization(patterns, options) {
|
|
@@ -7432,7 +7442,7 @@ var init_PathResolver = __esm({
|
|
|
7432
7442
|
return results.map((path) => {
|
|
7433
7443
|
const pathStr = typeof path === "string" ? path : path.path;
|
|
7434
7444
|
return this.normalizePath(pathStr);
|
|
7435
|
-
});
|
|
7445
|
+
}).sort();
|
|
7436
7446
|
}
|
|
7437
7447
|
/**
|
|
7438
7448
|
* Resolve files using patterns with cross-platform support
|
|
@@ -7587,15 +7597,6 @@ var init_PathResolver = __esm({
|
|
|
7587
7597
|
const cjsPath = this.getEmptyCjsModulePath();
|
|
7588
7598
|
return cjsPath.replace(/\.cjs$/, ".js");
|
|
7589
7599
|
}
|
|
7590
|
-
/**
|
|
7591
|
-
* Get absolute path to empty flag component module.
|
|
7592
|
-
* Returns `export default () => null;` — used by flag filtering plugins
|
|
7593
|
-
* to replace unused flag files at build time.
|
|
7594
|
-
*/
|
|
7595
|
-
getEmptyFlagModulePath() {
|
|
7596
|
-
const __dirname2 = dirname2(fileURLToPath(import.meta.url));
|
|
7597
|
-
return this.normalizePath(resolve(__dirname2, "emptyFlag.js"));
|
|
7598
|
-
}
|
|
7599
7600
|
/**
|
|
7600
7601
|
* Get absolute path to empty CJS module for esbuild pre-bundling.
|
|
7601
7602
|
* CJS because esbuild statically analyzes ESM exports — CJS has dynamic
|
|
@@ -7668,7 +7669,7 @@ import {
|
|
|
7668
7669
|
parse,
|
|
7669
7670
|
isAbsolute as pathIsAbsolute
|
|
7670
7671
|
} from "node:path";
|
|
7671
|
-
import { fileURLToPath
|
|
7672
|
+
import { fileURLToPath } from "node:url";
|
|
7672
7673
|
function readdirSync3(dirPath, options) {
|
|
7673
7674
|
if (options !== null && typeof options === "object" && options.withFileTypes === true) {
|
|
7674
7675
|
return pathResolverInstance.readdirSync(dirPath, options);
|
|
@@ -7747,13 +7748,13 @@ import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFile
|
|
|
7747
7748
|
import { createRequire as createRequire3 } from "node:module";
|
|
7748
7749
|
import { dirname as dirname4, resolve as resolve3 } from "node:path";
|
|
7749
7750
|
import process from "node:process";
|
|
7750
|
-
import { fileURLToPath as
|
|
7751
|
+
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
7751
7752
|
var require2, __filename, __dirname;
|
|
7752
7753
|
var init_utils2 = __esm({
|
|
7753
7754
|
"packages/tooling/src/bundler/utils.ts"() {
|
|
7754
7755
|
"use strict";
|
|
7755
7756
|
require2 = createRequire3(import.meta.url);
|
|
7756
|
-
__filename =
|
|
7757
|
+
__filename = fileURLToPath2(import.meta.url);
|
|
7757
7758
|
__dirname = dirname4(__filename);
|
|
7758
7759
|
if (typeof globalThis !== "undefined") {
|
|
7759
7760
|
globalThis.require = require2;
|
|
@@ -7769,6 +7770,9 @@ var init_utils2 = __esm({
|
|
|
7769
7770
|
});
|
|
7770
7771
|
|
|
7771
7772
|
// packages/tooling/src/utils/app-detection.ts
|
|
7773
|
+
function isVercelFunctionsDir(functionsDir) {
|
|
7774
|
+
return statSync2(joinPath(functionsDir, "src", "api"))?.isDirectory() ?? false;
|
|
7775
|
+
}
|
|
7772
7776
|
function createRootAppInfo(projectRoot) {
|
|
7773
7777
|
return {
|
|
7774
7778
|
name: "root",
|
|
@@ -7917,13 +7921,8 @@ function analyzeApp(appPath, appName) {
|
|
|
7917
7921
|
functions = "supabase";
|
|
7918
7922
|
}
|
|
7919
7923
|
}
|
|
7920
|
-
if (!functions) {
|
|
7921
|
-
|
|
7922
|
-
const apiDir = joinPath(appPath, "api");
|
|
7923
|
-
const apiDirStat = statSync2(apiDir);
|
|
7924
|
-
if (pathExists(vercelJsonPath) && pathExists(apiDir) && (apiDirStat?.isDirectory() ?? false)) {
|
|
7925
|
-
functions = "vercel";
|
|
7926
|
-
}
|
|
7924
|
+
if (!functions && isVercelFunctionsDir(joinPath(appPath, "functions"))) {
|
|
7925
|
+
functions = "vercel";
|
|
7927
7926
|
}
|
|
7928
7927
|
let hosting;
|
|
7929
7928
|
if (hasFirebase && firebaseConfig?.hasHosting) {
|
|
@@ -8005,6 +8004,14 @@ var init_app_detection = __esm({
|
|
|
8005
8004
|
}
|
|
8006
8005
|
});
|
|
8007
8006
|
|
|
8007
|
+
// packages/tooling/src/utils/create-utils.ts
|
|
8008
|
+
var init_create_utils = __esm({
|
|
8009
|
+
"packages/tooling/src/utils/create-utils.ts"() {
|
|
8010
|
+
"use strict";
|
|
8011
|
+
init_utils2();
|
|
8012
|
+
}
|
|
8013
|
+
});
|
|
8014
|
+
|
|
8008
8015
|
// packages/tooling/src/cli/coach/checklist-firebase.ts
|
|
8009
8016
|
var checklist_firebase_exports = {};
|
|
8010
8017
|
__export(checklist_firebase_exports, {
|
|
@@ -8385,6 +8392,7 @@ init_utils2();
|
|
|
8385
8392
|
|
|
8386
8393
|
// packages/tooling/src/cli/index.ts
|
|
8387
8394
|
init_utils2();
|
|
8395
|
+
init_create_utils();
|
|
8388
8396
|
|
|
8389
8397
|
// packages/tooling/src/cli/coach/coach.ts
|
|
8390
8398
|
init_utils2();
|