The swift run command has a new --repl option which launches the Swift REPL with support for importing library targets of a package.