0
Fork 0
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:
Leosvel Pérez Espinosa 2021-12-06 14:19:22 +00:00 committed by GitHub
parent 2e1936f116
commit c0f29bcf8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'create-astro': patch
---
Parse --renderers flag correctly when passed to the create-astro cli

View file

@ -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) {