I want to rename libs folder that nx creates to packages.
Is it something possible with nx?
I want to rename libs folder that nx creates to packages.
Is it something possible with nx?
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.
You can do this by adding the following in your nx.json:
"workspaceLayout": {
"libs": "packages"
},
© 2022 - 2024 — McMap. All rights reserved.