From cdc8a551cf67e89a5ee4bafe3f0a08561c0be9c8 Mon Sep 17 00:00:00 2001 From: codedust Date: Sun, 6 Apr 2025 09:40:25 +0200 Subject: [PATCH] fix: outfile file ending checked incorrectly --- src/cli.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli.mjs b/src/cli.mjs index a62289c..cc58b04 100755 --- a/src/cli.mjs +++ b/src/cli.mjs @@ -37,8 +37,8 @@ if (positionals.length > 1) { } if ( - !outfile.endsWith(".html") || - !outfile.endsWith(".importmap") || + !outfile.endsWith(".html") && + !outfile.endsWith(".importmap") && !outfile.endsWith(".json") ) { console.error("Error: outfile must end with .html, .importmap or .json");