Nrwl Nx generates service instead of lib?

Clash Royale CLAN TAG#URR8PPPNrwl Nx generates service instead of lib?
In the root of my Nx workspace, when I run the command ng g lib my-lib it generates a service called MyLibService in a myLib/src/libs folder in the root of my workspace. I would expect it to create a new lib inside the libs folder (libs/my-lib/src). (It used to do this before I upgraded to v6.)
ng g lib my-lib
MyLibService
myLib/src/libs
libs/my-lib/src
Also, nothing is added to my angular.json file after the service is created.
angular.json
So there's at least three things going wrong:
service
lib
angular.json
What am I doing wrong?
Thanks.
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.