Skip to content

Commit

Permalink
Parse --renderers flag correctly when passed to the create-astro cli (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
leosvelperez authored Dec 6, 2021
1 parent 2e1936f commit c0f29bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/spicy-bats-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-astro': patch
---

Parse --renderers flag correctly when passed to the create-astro cli
2 changes: 1 addition & 1 deletion packages/create-astro/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c0f29bc

Please sign in to comment.