Fixes #675. Specifically, this PR includes two changes:
We make sure to write a purs.json file to disk before calling publishToPursuit, unless the package already contains a purs.json file. The file we write is taken from the manifest index rather than what we've generated in the pipeline run so as to avoid any mismatches with what we published before. This is especially important for packages where we pruned unused dependencies
We were still exercising the rest of the publish pipeline after publishing to Pursuit, ie. uploading to storage and so on. We shouldn't do that — if a package needs to be published to Pursuit only, then we should do that then terminate. This PR fixes that.
I've added a test verifying the behavior. Most of the diff is just indentation.
Fixes #675. Specifically, this PR includes two changes:
publishToPursuit
, unless the package already contains a purs.json file. The file we write is taken from the manifest index rather than what we've generated in the pipeline run so as to avoid any mismatches with what we published before. This is especially important for packages where we pruned unused dependenciesI've added a test verifying the behavior. Most of the diff is just indentation.