mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
Parse --renderers flag correctly when passed to the create-astro cli (#2124)
This commit is contained in:
parent
2e1936f116
commit
c0f29bcf8c
2 changed files with 6 additions and 1 deletions
5
.changeset/spicy-bats-search.md
Normal file
5
.changeset/spicy-bats-search.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'create-astro': patch
|
||||
---
|
||||
|
||||
Parse --renderers flag correctly when passed to the create-astro cli
|
|
@ -14,7 +14,7 @@ import { createConfig } from './config.js';
|
|||
// broke our arg parser, since `--` is a special kind of flag. Filtering for `--` here
|
||||
// fixes the issue so that create-astro now works on all npm version.
|
||||
const cleanArgv = process.argv.filter((arg) => arg !== '--');
|
||||
const args = yargs(cleanArgv);
|
||||
const args = yargs(cleanArgv, { array: ['renderers'] });
|
||||
prompts.override(args);
|
||||
|
||||
export function mkdirp(dir: string) {
|
||||
|
|
Loading…
Reference in a new issue