Skip to content

Commit 2cdd93a

Browse files
author
nyqykk
committed
feat: support skip note
1 parent a6e41bb commit 2cdd93a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ export async function create({
151151
getTemplateName,
152152
mapESLintTemplate,
153153
version,
154+
skipNote,
154155
}: {
155156
name: string;
156157
root: string;
@@ -159,6 +160,7 @@ export async function create({
159160
getTemplateName: (argv: Argv) => Promise<string>;
160161
mapESLintTemplate: (templateName: string) => ESLintTemplateName | null;
161162
version?: Record<string, string> | string;
163+
skipNote?: boolean;
162164
}) {
163165
const argv = minimist<Argv>(process.argv.slice(2), {
164166
alias: { h: 'help', d: 'dir', t: 'template' },
@@ -299,7 +301,9 @@ export async function create({
299301
`4. ${color.cyan(`${pkgManager} run dev`)}`,
300302
];
301303

302-
note(nextSteps.map((step) => color.reset(step)).join('\n'), 'Next steps');
304+
if (!skipNote) {
305+
note(nextSteps.map((step) => color.reset(step)).join('\n'), 'Next steps');
306+
}
303307

304308
outro('All set, happy coding!');
305309
}

0 commit comments

Comments
 (0)