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'
23
23
export async function normalizeOptions (
24
24
cliOptions : CliOptions ,
25
25
) : 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
+ }
26
35
if ( cliOptions . projectName ) {
27
36
let typescript =
28
37
cliOptions . template === 'typescript' ||
You can’t perform that action at this time.
0 commit comments