Use replaceAll in generator command.

This commit is contained in:
Dillon Kearns 2021-04-13 13:11:34 -07:00
parent 4e5c80ab91
commit 64e1baf0b2
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ async function run() {
const content = fileContent(moduleName);
const fullFilePath = path.join(
`src/Template/`,
moduleName.replace(".", "/") + ".elm"
moduleName.replaceAll(".", "/") + ".elm"
);
await fs.tryMkdir(path.dirname(fullFilePath));
fs.writeFile(fullFilePath, content);

View File

@ -8,7 +8,7 @@
"strict": true,
"sourceMap": false,
"resolveJsonModule": true,
"lib": ["es2015", "es2017.object"]
"lib": ["es2015", "es2017.object", "esnext"]
},
"exclude": ["node_modules", "generated"]
}