From c974078c1aceb6635da2eb8abf15b1e3031b1652 Mon Sep 17 00:00:00 2001 From: Will Larry Date: Wed, 10 May 2023 17:26:45 -0400 Subject: [PATCH] Run prettier on project. --- src/commands/eslint.ts | 2 +- src/util/getPackageManager.ts | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 src/util/getPackageManager.ts diff --git a/src/commands/eslint.ts b/src/commands/eslint.ts index 5f8c481..21f6170 100755 --- a/src/commands/eslint.ts +++ b/src/commands/eslint.ts @@ -1,3 +1,3 @@ export default function runEslint() { - console.log("ESLint!"); + console.log('ESLint!'); } diff --git a/src/util/getPackageManager.ts b/src/util/getPackageManager.ts new file mode 100644 index 0000000..b13dd7e --- /dev/null +++ b/src/util/getPackageManager.ts @@ -0,0 +1,20 @@ +import { select } from '@inquirer/prompts'; + +export default async function pickPackageManager() { + const packageManager = await select({ + message: 'Preferred package manager', + choices: [ + { + name: 'yarn', + value: 'yarn', + }, + { + name: 'npm', + value: 'npm', + }, + ], + }); + + console.log(packageManager); + return packageManager; +}