From e07eb264f030a0280d95ffe3ea53841eb514ab5a Mon Sep 17 00:00:00 2001 From: Dillon Kearns Date: Wed, 11 May 2022 11:06:14 -0700 Subject: [PATCH] Generate fetchers for all the paths needed for build compilation. --- generator/src/codegen.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/generator/src/codegen.js b/generator/src/codegen.js index 6ce4b250..12251b6f 100644 --- a/generator/src/codegen.js +++ b/generator/src/codegen.js @@ -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/