Skip to content

Commit

Permalink
Ask email prompt only for refine projects (#350)
Browse files Browse the repository at this point in the history
* feat: skip prompt for non-refine projects

* 1.17.2
  • Loading branch information
BatuhanW authored Jul 24, 2023
1 parent f0fbb67 commit e005a97
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "superplate-cli",
"version": "1.17.1",
"version": "1.17.2",
"description": "The frontend boilerplate with superpowers",
"license": "MIT",
"repository": {
Expand Down
5 changes: 4 additions & 1 deletion src/saofile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const saoConfig: GeneratorConfig = {

const {
appName,
extras: { paths, presetAnswers },
extras: { paths, presetAnswers, projectType },
} = sao.opts;

// eslint-disable-next-line @typescript-eslint/no-var-requires
Expand Down Expand Up @@ -77,6 +77,9 @@ const saoConfig: GeneratorConfig = {
message:
"Mind sharing your email? (We reach out to developers for free priority support, events, and SWAG kits. We never spam.)",
default: "",
skip: () => {
return !projectType.includes("refine");
},
},
];
},
Expand Down

0 comments on commit e005a97

Please sign in to comment.