From df098c613acdf92cdf11cd0bb8864ad5460f67ba Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Thu, 16 Nov 2023 08:53:07 -0600 Subject: [PATCH] fix: cast flags to string --- packages/astro/src/cli/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/astro/src/cli/index.ts b/packages/astro/src/cli/index.ts index c8143cb8a7a6..8dc718e8115f 100644 --- a/packages/astro/src/cli/index.ts +++ b/packages/astro/src/cli/index.ts @@ -119,7 +119,7 @@ async function runCommand(cmd: string, flags: yargs.Arguments) { } case 'config': { const { config } = await import('./config/index.js'); - const [key, value] = flags._.slice(3); + const [key, value] = flags._.slice(3).map(v => v.toString()); const exitCode = await config(key, value, { flags }); return process.exit(exitCode); }