File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,15 @@ import type { CliOptions, Options } from './types.js'
2323export async function normalizeOptions (
2424 cliOptions : CliOptions ,
2525) : Promise < Required < Options > | undefined > {
26+ // in some cases, if you use windows/powershell, the argument for addons
27+ // if sepparated by comma is not really passed as an array, but as a string
28+ // with spaces, We need to normalize this edge case.
29+ if ( Array . isArray ( cliOptions . addOns ) && cliOptions . addOns . length === 1 ) {
30+ const parseSeparatedArgs = cliOptions . addOns [ 0 ] . split ( ' ' ) ;
31+ if ( parseSeparatedArgs . length > 1 ) {
32+ cliOptions . addOns = parseSeparatedArgs ;
33+ }
34+ }
2635 if ( cliOptions . projectName ) {
2736 let typescript =
2837 cliOptions . template === 'typescript' ||
You can’t perform that action at this time.
0 commit comments