From 836e4bcb52acfcf5c7e37327f6f9b6f5a9836d12 Mon Sep 17 00:00:00 2001 From: typicode Date: Tue, 5 Mar 2024 15:38:22 +0100 Subject: [PATCH] fix cli -w option --- src/bin.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/bin.ts b/src/bin.ts index ecd8dc7..026e560 100644 --- a/src/bin.ts +++ b/src/bin.ts @@ -20,8 +20,7 @@ const { values, positionals } = parseArgs({ options: { watch: { type: 'boolean', - alias: 'w', - default: false, + short: 'w', }, }, allowPositionals: true, @@ -84,5 +83,5 @@ if (fs.statSync(fileOrDir).isFile()) { mistFiles.forEach(handleMistFileUpdate) // Clean up generated files without a corresponding mist file - genFiles.forEach((genFilename) => handleGenFileWithoutMistFile(genFilename) + genFiles.forEach((genFilename) => handleGenFileWithoutMistFile(genFilename)) }