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 16, 2023
1 parent 94cbd92 commit ee976cd
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 ee976cd

Please sign in to comment.