workaround clorox bug

This commit is contained in:
Rich Harris
2018-03-11 20:51:14 -04:00
parent 9a5d273590
commit 37d3d57694
4 changed files with 11 additions and 11 deletions

View File

@@ -27,10 +27,10 @@ async function upgrade_sapper_main() {
if (/\%sapper\.main\%/.test(template)) {
if (!pattern.test(template)) {
console.log(clorox.red(`Could not replace %sapper.main% in ${file}`));
console.log(`${clorox.red(`Could not replace %sapper.main% in ${file}`)}`);
} else {
write(file, template.replace(pattern, `%sapper.scripts%`));
console.log(clorox.green(`Replaced %sapper.main% in ${file}`));
console.log(`${clorox.green(`Replaced %sapper.main% in ${file}`)}`);
replaced = true;
}
}