Skip to content

Commit

Permalink
minor flag fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
OrJDev committed Nov 13, 2022
1 parent 47d3596 commit 581de53
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-jd-app",
"version": "1.0.79",
"version": "1.0.80",
"main": "dist/index.js",
"scripts": {
"test": "ts-node -r tsconfig-paths/register src",
Expand Down
23 changes: 14 additions & 9 deletions src/utils/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,20 @@ export async function initApp(args: string[]): Promise<IAppCtx> {
process.exit(1);
}
}
let vercel =
args.includes("vercel") ||
(
await inquirer.prompt<{ vercel: boolean }>({
name: "vercel",
type: "confirm",
message: "Will you deploy this project to vercel?",
})
).vercel;
let vercel = false;
if (args.includes("skip")) {
vercel = args.includes("vercel");
} else {
vercel =
args.includes("vercel") ||
(
await inquirer.prompt<{ vercel: boolean }>({
name: "vercel",
type: "confirm",
message: "Will you deploy this project to vercel?",
})
).vercel;
}
return {
appName,
userDir,
Expand Down

0 comments on commit 581de53

Please sign in to comment.