Skip to content

Commit 66b8081

Browse files
committed
feat(configurations): add Post-script to configurations list
1 parent ae2e694 commit 66b8081

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ class CreateJavascriptProject extends Command {
2727
this.parse(CreateJavascriptProject);
2828
await checkPackageJson();
2929
const answers = await collectAnswers();
30-
answers.configurations.push("post");
3130

3231
if (answers.configurations.includes("flow") || answers.framework !== "none") {
3332
answers.module = "esm";

src/inquirer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ export async function collectAnswers(): Promise<InquirerConfigs> {
1212
{ name: "Prettier", value: "prettier" },
1313
{ name: "Flow", value: "flow" },
1414
{ name: "Yarn 2 (Berry)", value: "yarn2" },
15+
{ name: "Post-script", value: "post" },
1516
],
16-
default: ["yarn2", "eslint", "prettier"],
17+
default: ["eslint", "prettier", "yarn2", "post"],
1718
validate: (input: GeneratorType[]) => {
1819
return input.length === 0 ? "At least one configuration need to be selected" : true;
1920
},

0 commit comments

Comments
 (0)