Skip to content

Use stringifyWithIndent for the versions file #20

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Apr 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Setup/UpdateVersions.purs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Prelude
import Affjax as AX
import Affjax.ResponseFormat as RF
import Control.Monad.Rec.Class (untilJust)
import Data.Argonaut.Core (Json, jsonEmptyObject, stringify)
import Data.Argonaut.Core (Json, jsonEmptyObject, stringify, stringifyWithIndent)
import Data.Argonaut.Decode (decodeJson, printJsonDecodeError, (.:))
import Data.Argonaut.Encode ((:=), (~>))
import Data.Array (foldl)
Expand Down Expand Up @@ -53,7 +53,7 @@ updateVersions = do
versionsFilePath = "./dist/versions.json"

writeVersionsFile :: Json -> Effect Unit
writeVersionsFile = writeTextFile UTF8 versionsFilePath <<< stringify
writeVersionsFile = writeTextFile UTF8 versionsFilePath <<< stringifyWithIndent 2

-- | Find the latest release version for a given tool. Prefers explicit releases
-- | as listed in GitHub releases, but for tools which don't support GitHub
Expand Down