Skip to content

Commit

Permalink
Release fable-standalone and fable-compiler-js after Fable.Cli
Browse files Browse the repository at this point in the history
  • Loading branch information
MangelMaxime committed Dec 6, 2023
1 parent 45e5c9f commit 1242be5
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/Fable.Build/Publish.fs
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,6 @@ let handle (args: string list) =

publishNpm ProjectDir.fable_metadata

// Trigger fable-compiler-js target to make sure everything is ready for publish
// Note: fable-standalone is built as part of fable-compiler-js
// so no need to build it separately
// Note 2: We already built fable-library, so we skip it here
CompilerJs.handle [ "--skip-fable-library" ]

publishNpm ProjectDir.fable_standalone
publishNpm ProjectDir.fable_compiler_js

// Update embedded version (both compiler and libraries)
let changelogPath = Path.Combine(ProjectDir.fableCli, "CHANGELOG.md")

Expand All @@ -166,3 +157,15 @@ let handle (args: string list) =
publishNuget ProjectDir.fableCore
publishNuget ProjectDir.fableCli
publishNuget ProjectDir.fablePublishUtils

// Release fable-compiler-js and fable-standalone after Fable.Cli
// otherwise the reported version for Fable will be wrong

// Trigger fable-compiler-js target to make sure everything is ready for publish
// Note: fable-standalone is built as part of fable-compiler-js
// so no need to build it separately
// Note 2: We already built fable-library, so we skip it here
CompilerJs.handle [ "--skip-fable-library" ]

publishNpm ProjectDir.fable_standalone
publishNpm ProjectDir.fable_compiler_js

0 comments on commit 1242be5

Please sign in to comment.