12

I want to rename libs folder that nx creates to packages.

Is it something possible with nx?

Jon Sud
  • 10,211
  • 17
  • 76
  • 174

2 Answers2

29

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.

schrodinger's code
  • 2,624
  • 1
  • 25
  • 19
3

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.

Nestor Vanz
  • 119
  • 1
  • 4