fix(gen): resolve deps for server, watch and inject tasks