diff --git a/src/Fable.Compiler/CHANGELOG.md b/src/Fable.Compiler/CHANGELOG.md index 1658b66719..88d7975c5e 100644 --- a/src/Fable.Compiler/CHANGELOG.md +++ b/src/Fable.Compiler/CHANGELOG.md @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * [GH-3758](https://github.com/fable-compiler/Fable/pull/3758) Endpoint to get Fable.AST for a file. (by @nojaf) +### Fixed + +* [GH-3763](https://github.com/fable-compiler/Fable/pull/3763) Redirect plugin build stdout and pass to logger. (by @nojaf) + ## 4.0.0-alpha-006 - 2024-02-12 ### Changed diff --git a/src/Fable.Compiler/ProjectCracker.fs b/src/Fable.Compiler/ProjectCracker.fs index 12cae809cf..95fe64c2a8 100644 --- a/src/Fable.Compiler/ProjectCracker.fs +++ b/src/Fable.Compiler/ProjectCracker.fs @@ -138,8 +138,10 @@ type CrackerOptions(cliArgs: CliArgs, evaluateOnly: bool) = |> Array.rev |> String.concat "/" - Process.runSync projDir "dotnet" [ "build"; "-c"; cliArgs.Configuration ] - |> ignore + let stdout = + Process.runSyncWithOutput projDir "dotnet" [ "build"; "-c"; cliArgs.Configuration ] + + Log.always stdout builtDlls.Add(normalizedDllPath) |> ignore diff --git a/src/Fable.Compiler/Util.fsi b/src/Fable.Compiler/Util.fsi index 2d4e51ca26..79e86081fd 100644 --- a/src/Fable.Compiler/Util.fsi +++ b/src/Fable.Compiler/Util.fsi @@ -91,6 +91,8 @@ module Process = val runSync: workingDir: string -> exePath: string -> args: string list -> int + val runSyncWithOutput: string -> string -> string list -> string + type PathResolver = abstract TryPrecompiledOutPath: sourceDir: string * relativePath: string -> string option