From b3083ac9e4fccf8ff29b9171b24b17a29a0f7bcb Mon Sep 17 00:00:00 2001 From: Thomas Honeyman Date: Tue, 28 Nov 2023 15:32:42 -0500 Subject: [PATCH] Show converted manifest --- app/src/App/API.purs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/app/src/App/API.purs b/app/src/App/API.purs index e2d12561..9082f1da 100644 --- a/app/src/App/API.purs +++ b/app/src/App/API.purs @@ -435,6 +435,12 @@ publish source payload = do ] Right manifest -> do Log.debug "Successfully converted a spago.yaml into a purs.json manifest" + Comment.comment $ Array.fold + [ "Converted your spago.yaml into a purs.json manifest to use for publishing:\n" + , "```json" + , printJson Manifest.codec manifest + , "```" + ] pure manifest else do Comment.comment $ "Package source does not have a purs.json file. Creating one from your bower.json and/or spago.dhall files..." @@ -457,10 +463,14 @@ publish source payload = do Right legacyManifest -> do Log.debug $ "Successfully produced a legacy manifest from the package source." let manifest = Legacy.Manifest.toManifest payload.name version existingMetadata.location legacyManifest + Comment.comment $ Array.fold + [ "Converted your legacy manifest(s) into a purs.json manifest to use for publishing:\n" + , "```json" + , printJson Manifest.codec manifest + , "```" + ] pure manifest - Comment.comment "Verifying package..." - -- We trust the manifest for any changes to the 'owners' field, but for all -- other fields we trust the registry metadata. let metadata = existingMetadata { owners = manifest.owners }