scaffolder: stop ignoring dotfiles in template directories
globby ignores files/directories starting with a dot by default, which we don't want. cf. https://github.com/mrmlnc/fast-glob#dot Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
This commit is contained in:
committed by
Himanshu Mishra
parent
3fc8f9ff5b
commit
cc43a3135e
@@ -99,7 +99,10 @@ export function createFetchTemplateAction(options: {
|
||||
// Grab some files
|
||||
//
|
||||
// TODO(mtlewis/orkohunter) test whether empty directories are templated
|
||||
const allFilesInTemplates = await globby(`**/*`, { cwd: templateDir });
|
||||
const allFilesInTemplates = await globby(`**/*`, {
|
||||
cwd: templateDir,
|
||||
dot: true,
|
||||
});
|
||||
|
||||
// Nice for Cookiecutter compat
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user