fix(template_generator): fix condition for windows

This commit is contained in:
Jonathan Rainville 2019-10-03 13:25:09 -04:00
parent d6bf5c24b9
commit 7fae609d87

View File

@ -122,7 +122,7 @@ class TemplateGenerator {
if (this.isInsideMonorepo) {
templateSpecifier = findMonorepoPackageFromRootSync(
templatePkg,
() => (pkgJsonPath) => pkgJsonPath.includes(normalize('dapps/templates'))
() => (pkgJsonPath) => normalize(pkgJsonPath).includes(normalize('dapps/templates'))
);
} else {
const version = fs.readJSONSync(embarkPath('package.json')).version;