How to save "globally" installed package in a project folder?

Dear folks,

a while ago I created a Julia project in /myproject with pkg> activate . . However, I was a bit lazy and worked with the “globally” installed packages from /.julia/environments/v1.4 which I updated several times in the meanwhile. Now I want to save that current configuration to my project. Is it sufficient to copy the files Project.toml and Manifest.toml from the julia-folder to /myproject overwriting the existing ones?
Thanks in advance.

You can simply copy over the Project.toml (or just the dependencies mentioned in it) over to your myproject environment and continue working in it.