Generate fetchers for all the paths needed for build compilation.

This commit is contained in:
Dillon Kearns 2022-05-11 11:06:14 -07:00
parent 2725e9bb00
commit e07eb264f0

View File

@ -52,7 +52,11 @@ async function generate(basePath) {
fs.promises.writeFile("./.elm-pages/Route.elm", browserCode.routesModule),
writeFetcherModules("./.elm-pages", browserCode.fetcherModules),
writeFetcherModules(
"./elm-stuff/elm-pages/.elm-pages/",
"./elm-stuff/elm-pages/client/.elm-pages",
browserCode.fetcherModules
),
writeFetcherModules(
"./elm-stuff/elm-pages/.elm-pages",
browserCode.fetcherModules
),
// write modified elm.json to elm-stuff/elm-pages/