I'm looking for an advice on how one would use libSwiftPM to load, modify and output Package.swift file.
Loading the manifest file into an instance of
Manifest is simple with
Manifest is immutable, so modifying it is tricky, but not impossible. However, I can't find a way to generate
Package.swift from an instance of
Manifest. Is there anything in
libSwiftPM or in some other tool that I missed what can product Swift package file (not JSON)?