Skip to content

Commit

Permalink
feat: enable passing no options to rebuid
Browse files Browse the repository at this point in the history
  • Loading branch information
mxdvl committed Sep 27, 2024
1 parent b2dc347 commit d87e0fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mxdvl/mononykus",
"version": "0.7.8",
"version": "0.7.9",
"license": "MIT",
"exports": "./src/build.ts",
"tasks": {
Expand Down
6 changes: 3 additions & 3 deletions src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"]) => {
Expand Down Expand Up @@ -78,7 +78,7 @@ export const rebuild = async ({
out_dir,
site_dir,
minify,
}: Options): Promise<void> => {
} = options): Promise<void> => {
const baseESBuildConfig = {
logLevel: "info",
format: "esm",
Expand Down

0 comments on commit d87e0fc

Please sign in to comment.