mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-27 11:05:46 +03:00
Use String replace instead of replaceAll for older versions of node.
This commit is contained in:
parent
ed58c97b4e
commit
14a103e6fb
@ -10,7 +10,7 @@ async function run({ moduleName }) {
|
||||
const content = fileContent(moduleName);
|
||||
const fullFilePath = path.join(
|
||||
`src/Template/`,
|
||||
moduleName.replaceAll(".", "/") + ".elm"
|
||||
moduleName.replace(/\./g, "/") + ".elm"
|
||||
);
|
||||
await fs.tryMkdir(path.dirname(fullFilePath));
|
||||
fs.writeFile(fullFilePath, content);
|
||||
|
Loading…
Reference in New Issue
Block a user