Hi I am a bit confused …

less than 1 minute read

Hi! I am a bit confused about how Nx manages npm dependencies. There is a global package.json with all the dependencies for our mono repo, but what if I want to specify a dependency for a given app or library in our project? I know I can manually generate the package.json and add it there. I tried running (from my app root folder i.e. /apps/my-app) yarn add @my-package but this added the dependency into the main package.json. Is this expected? Is there a way I can make dependencies explicitely without doing it manually?

Updated: