How to covert old package to use the new package manager

How do you convert a package to use the new package system.

using activate and adding packages will create the Project.toml file but it won’t have the name, uuid, version and author fields and generate complains that the project already exists.

EDIT: Step 1: rename the folder of the old package. 2. Generate the package with the correct name, and then 3. copy the files from the old package to the new one. Works fine for me.