Skip to content

Commit d87e0fc

Browse files
committed
feat: enable passing no options to rebuid
1 parent b2dc347 commit d87e0fc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

deno.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mxdvl/mononykus",
3-
"version": "0.7.8",
3+
"version": "0.7.9",
44
"license": "MIT",
55
"exports": "./src/build.ts",
66
"tasks": {

src/build.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ const flags = parseArgs(Deno.args, {
2828
},
2929
});
3030

31-
const options: Options = {
31+
const options = {
3232
site_dir: slashify(flags.site_dir),
3333
out_dir: slashify(flags.out_dir),
3434
base: slashify(flags.base),
3535
minify: !flags.watch || flags.minify,
36-
};
36+
} satisfies Options;
3737

3838
// clean out old builds, if they exist
3939
const clean = async (out_dir: Options["out_dir"]) => {
@@ -78,7 +78,7 @@ export const rebuild = async ({
7878
out_dir,
7979
site_dir,
8080
minify,
81-
}: Options): Promise<void> => {
81+
} = options): Promise<void> => {
8282
const baseESBuildConfig = {
8383
logLevel: "info",
8484
format: "esm",

0 commit comments

Comments
 (0)