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");