From d87e0fc8555417f14d56059e6b738a6ec94aa398 Mon Sep 17 00:00:00 2001 From: Max Duval Date: Fri, 27 Sep 2024 21:49:16 +0100 Subject: [PATCH] feat: enable passing no options to rebuid --- deno.json | 2 +- src/build.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deno.json b/deno.json index a683534..af77064 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@mxdvl/mononykus", - "version": "0.7.8", + "version": "0.7.9", "license": "MIT", "exports": "./src/build.ts", "tasks": { diff --git a/src/build.ts b/src/build.ts index aa4c43f..8f8c9fb 100644 --- a/src/build.ts +++ b/src/build.ts @@ -28,12 +28,12 @@ const flags = parseArgs(Deno.args, { }, }); -const options: Options = { +const options = { site_dir: slashify(flags.site_dir), out_dir: slashify(flags.out_dir), base: slashify(flags.base), minify: !flags.watch || flags.minify, -}; +} satisfies Options; // clean out old builds, if they exist const clean = async (out_dir: Options["out_dir"]) => { @@ -78,7 +78,7 @@ export const rebuild = async ({ out_dir, site_dir, minify, -}: Options): Promise => { +} = options): Promise => { const baseESBuildConfig = { logLevel: "info", format: "esm",