Skip to content

Commit

Permalink
fix: telemetry question
Browse files Browse the repository at this point in the history
  • Loading branch information
omeraplak committed Nov 18, 2022
1 parent 9d47efe commit 132cd91
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
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.9.1",
"version": "1.9.2",
"description": "The frontend boilerplate with superpowers",
"license": "MIT",
"repository": {
Expand Down
1 change: 0 additions & 1 deletion src/Helper/source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ export const prompt_project_types = async (
})),
});

console.log({ response });
projectType = (response as { projectType: string }).projectType;
}

Expand Down
12 changes: 6 additions & 6 deletions src/Helper/telemetry/index.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import prompts from "prompts";
import { prompt } from "enquirer";

export const prompt_telemetry = async (): Promise<{
telemetry: "yes" | "no";
}> => {
const result = await prompts({
const result = await prompt({
type: "select",
name: "telemetry",
message: "Would you like to share your choices with us anonymously?",
choices: [
{
title: "I want to share anonymously! Thank you! ❤️",
value: "yes",
message: "I want to share anonymously! Thank you! ❤️",
name: "yes",
},
{ title: "No", value: "no" },
{ message: "No", name: "no" },
],
});

return result;
return result as { telemetry: "yes" | "no" };
};

0 comments on commit 132cd91

Please sign in to comment.