Can I generate swiftinterface with only SwiftPM (in order to review public API)?

Just want to add (and hopefully answer part of my question) that it is possible to generate the swiftinterface by just using:

swift build -Xswiftc=-enable-library-evolution --enable-parseable-module-interfaces

I taken this from an older forum post, can someone from the package manager team confirm if this is still the right approach since the reply I got this from is a bit older (2020)?