mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
several bug fixes
This commit is contained in:
@@ -122,13 +122,13 @@ async function main() {
|
||||
}),
|
||||
...((options.web !== undefined || options.native !== undefined) && {
|
||||
frontend: [
|
||||
...(options.web === false ? [] : options.web === true ? ["web"] : []),
|
||||
...(options.web === false ? [] : ["web"]),
|
||||
...(options.native === false
|
||||
? []
|
||||
: options.native === true
|
||||
? ["native"]
|
||||
: []),
|
||||
] as ProjectFrontend[],
|
||||
].filter(Boolean) as ProjectFrontend[],
|
||||
}),
|
||||
};
|
||||
|
||||
@@ -137,7 +137,6 @@ async function main() {
|
||||
log.message(displayConfig(flagConfig));
|
||||
log.message("");
|
||||
}
|
||||
|
||||
const config = options.yes
|
||||
? {
|
||||
...DEFAULT_CONFIG,
|
||||
@@ -180,6 +179,13 @@ async function main() {
|
||||
runtime: options.runtime
|
||||
? (options.runtime as Runtime)
|
||||
: DEFAULT_CONFIG.runtime,
|
||||
frontend:
|
||||
options.web === false || options.native === true
|
||||
? ([
|
||||
...(options.web === false ? [] : ["web"]),
|
||||
...(options.native ? ["native"] : []),
|
||||
] as ProjectFrontend[])
|
||||
: DEFAULT_CONFIG.frontend,
|
||||
}
|
||||
: await gatherConfig(flagConfig);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user