Skip to content

Commit

Permalink
fix: clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
mxdvl committed Jan 24, 2023
1 parent 2b84c6c commit 2f2b82b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ import { parse } from "https://deno.land/[email protected]/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);
}
Expand Down

0 comments on commit 2f2b82b

Please sign in to comment.