adrian-goe / nx-aws-cdk-v2

MIT License
38 stars 11 forks source link

Include @nx/devkit as a dependency #972

Open isaacplmann opened 11 months ago

isaacplmann commented 11 months ago

This plugin doesn't have an Nx version listed in the Nx Plugin Registry because the plugin doesn't include @nx/devkit as a dependency. Could you please release a version that fixes that?

Thanks, Isaac (Nx Team)

adrian-goe commented 11 months ago

hey @isaacplmann I will do, but just to be sure, this goes into addDependenciesToPackageJson part as a dev dependency right?

teaforchris commented 9 months ago

I had a similar issue, I couldn't just run nx generate @ago-dev/nx-aws-cdk-v2:application myApp - I had to methodically retry and manually install several dependencies before it would generate the app:

@nx/devkit
@nx/jest
@nx/linter
nubunto commented 6 months ago

kinda unusable without this

thoroc commented 3 months ago

@isaacplmann could you answer the question? @adrian-goe might still be waiting for you.

isaacplmann commented 2 months ago

The easiest solution is to add the packages to the dependencies in https://github.com/adrian-goe/nx-aws-cdk-v2/blob/main/packages/aws-cdk-v2/package.json

You can put them in the dependencies or peerDependencies. devDependencies won't require the users of your package to have those packages installed.

I think that function is another way of adding the packages if you can't do it manually for some reason.