From a9d2fb86fd958abf067a52c90d46f0fbf2f081f7 Mon Sep 17 00:00:00 2001 From: Joseph Lozano Date: Wed, 17 Aug 2022 01:29:32 -0400 Subject: [PATCH 1/2] fallback to undefined rather than false when resolving cli flags --- packages/astro/src/core/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/astro/src/core/config.ts b/packages/astro/src/core/config.ts index b0678de04250..094680721946 100644 --- a/packages/astro/src/core/config.ts +++ b/packages/astro/src/core/config.ts @@ -363,7 +363,7 @@ function resolveFlags(flags: Partial): CLIFlags { config: typeof flags.config === 'string' ? flags.config : undefined, host: typeof flags.host === 'string' || typeof flags.host === 'boolean' ? flags.host : undefined, - drafts: typeof flags.drafts === 'boolean' ? flags.drafts : false, + drafts: typeof flags.drafts === 'boolean' ? flags.drafts : undefined, }; } From f6aa5687c3ad86ead064c8898692267022df3a4c Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Wed, 17 Aug 2022 13:51:26 +0800 Subject: [PATCH 2/2] Create few-mayflies-invent.md --- .changeset/few-mayflies-invent.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/few-mayflies-invent.md diff --git a/.changeset/few-mayflies-invent.md b/.changeset/few-mayflies-invent.md new file mode 100644 index 000000000000..4df57c2dc32e --- /dev/null +++ b/.changeset/few-mayflies-invent.md @@ -0,0 +1,5 @@ +--- +"astro": patch +--- + +Allow user config to set `markdown.drafts` option