To link library in migrations I use:
await deployer.deploy(MyTokenL) await deployer.link(MyTokenL, MyToken)
We want to use migrations as infrastructure deployment and then have a deployment factory nodejs for tokens that use the infrastructure. I read that migrations are not ideal for this factory approach because migrations are not intended to deploy the same token multiple times.
So I have the deployed MyTokenL and want to link it to a new contract deployed without migrations via:
//how link existing library, there is no deployer available??? const newlyDeployedToken = await MyToken.new()