I want to rename libs folder that nx creates to packages.
Is it something possible with nx?
Since Nx 8.12 you can do it by using the move schematic (or mv ) to 'move' the app to the same place but with the new wanted name. Or nx g mv --project oldNG newNG if I want to rename app from my default collection.
The workspace plugin contains executors and generators that are useful for any Nx workspace. It should be present in every Nx workspace and other plugins build on it.
Nx is designed to help you create and build enterprise grade Angular applications. It provides an opinionated approach to application project structure and patterns. Playing in picture-in-picture. Like.
You can rename a lib e.g. nx g @nrwl/workspace:mv --project my-lib --destination their-lib
, more details you can find on this issue here.
To achieve this, you will need to change the workspace.json
project's paths that of all the projects that you have into the libs
folder.
Also, you will need to update the tsconfig.json
to update the project's resultant path too. Here you will update typescript's references.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With