nx g @ns3/nx-serverless:app change my dependency
I found "updateDependencies" in the @ns3/nx-serverless:init generator. I agree that I need that behavior, but the version should be able to use the version I want. And if you necessarily need more than a specific version, it should be declared as a peerDependency. Also, if I'm already using a version higher than that, the function shouldn't lower my version.
I'm considering creating a pull request if needed. I'd love to hear back from you!
Hello, yeah, I agree. I would welcome a PR, let's make it so it doesn't lower a version if there is already a higher one 👍
As of now, it pins a single nx version in package.json:
https://github.com/Bielik20/nx-plugins/commit/a6a920cd3fea8edafaf624da0d466c25158453fa#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
So if there is a big repo and you want to use serverless in one package you have to upgrade to 19.4.0 and stay there until nx-serverless updates.
Probably >= 18 will be enough for all nx-related packages, instead of the currect 19.4.0