On Windows, this globby(…) returns empty array [], so the templateFiles becomes empty and the template files are not copied to the target directory.
I found this problem occurs when the templateDir contains backslashes (Windows directory separator). So I put slash(…) to convert the backslash to slash, and this works fine:
I looked into the problem with Create Book not working on Windows (https://github.com/vivliostyle/create-book/issues/3) and found that it was caused by this problem on create-create-app.
On Windows, this
globby(…)
returns empty array[]
, so the templateFiles becomes empty and the template files are not copied to the target directory.I found this problem occurs when the templateDir contains backslashes (Windows directory separator). So I put
slash(…)
to convert the backslash to slash, and this works fine:This seems a problem of fast-glob used in globby. Perhaps the following fast-glob issue is relevant: https://github.com/mrmlnc/fast-glob/issues/240