From 2f2b82b31b9d07a75efe79c74779f86b39219abb Mon Sep 17 00:00:00 2001 From: Max Duval Date: Tue, 24 Jan 2023 11:14:25 +0000 Subject: [PATCH] fix: clean up code --- main.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.ts b/main.ts index 030f4cd..c20bcee 100644 --- a/main.ts +++ b/main.ts @@ -6,10 +6,9 @@ import { parse } from "https://deno.land/std@0.168.0/flags/mod.ts"; const { _: [package_file], verbose, cache } = parse(Deno.args, { boolean: ["verbose", "cache"], - default: { verbose: false, cache: true }, }); -if (!package_file) { +if (typeof package_file !== "string") { console.error("🚨 No package.json passed as argument"); Deno.exit(1); }