mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-28 14:34:18 +03:00
Use replaceAll in generator command.
This commit is contained in:
parent
4e5c80ab91
commit
64e1baf0b2
@ -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);
|
||||
|
@ -8,7 +8,7 @@
|
||||
"strict": true,
|
||||
"sourceMap": false,
|
||||
"resolveJsonModule": true,
|
||||
"lib": ["es2015", "es2017.object"]
|
||||
"lib": ["es2015", "es2017.object", "esnext"]
|
||||
},
|
||||
"exclude": ["node_modules", "generated"]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user