Skip to content

Commit

Permalink
fix: cast flags to string
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re committed Nov 17, 2023
1 parent b3b861d commit df098c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/astro/src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit df098c6

Please sign in to comment.