mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
fix: web-deploy validation to check for frontend flag
This commit is contained in:
5
.changeset/mighty-rats-lie.md
Normal file
5
.changeset/mighty-rats-lie.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"create-better-t-stack": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: web-deploy validation to check for frontend flag
|
||||||
@@ -448,7 +448,13 @@ export function processAndValidateFlags(
|
|||||||
const hasWebFrontendFlag = (config.frontend ?? []).some((f) =>
|
const hasWebFrontendFlag = (config.frontend ?? []).some((f) =>
|
||||||
WEB_FRAMEWORKS.includes(f),
|
WEB_FRAMEWORKS.includes(f),
|
||||||
);
|
);
|
||||||
if (config.webDeploy && config.webDeploy !== "none" && !hasWebFrontendFlag) {
|
|
||||||
|
if (
|
||||||
|
config.webDeploy &&
|
||||||
|
config.webDeploy !== "none" &&
|
||||||
|
!hasWebFrontendFlag &&
|
||||||
|
providedFlags.has("frontend")
|
||||||
|
) {
|
||||||
consola.fatal(
|
consola.fatal(
|
||||||
"'--web-deploy' requires a web frontend. Please select a web frontend or set '--web-deploy none'.",
|
"'--web-deploy' requires a web frontend. Please select a web frontend or set '--web-deploy none'.",
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user