We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 501d0d4 commit d32878cCopy full SHA for d32878c
src/lustre/dev.gleam
@@ -281,6 +281,14 @@ key `tools.lustre.build.outdir`.
281
let name = justin.snake_case(entry) <> ".mjs"
282
let path = filepath.join(project.build, name)
283
284
+ use _ <- result.try(
285
+ simplifile.create_directory_all(filepath.directory_name(path))
286
+ |> result.map_error(error.CouldNotWriteFile(
287
+ filepath.directory_name(path),
288
+ _,
289
+ )),
290
+ )
291
+
292
use _ <- result.try(
293
simplifile.write(path, module)
294
|> result.map_error(error.CouldNotWriteFile(path, _)),
0 commit comments