I am trying to generate a library under a directory via the above command in the angular nx workspace. It is generating correctly but in angular.json (and a few other files) when it's adding the entry for the new library it changes the library name to a new one by prepeding directories with '-'.
I want to get rid of this behavior as I am ensuring that the library name won't be duplicated. Is there any option (option combination) through which I can achieve this?
Can you try using the correct flag that exists to specify the directory? This is the command that should work for you:
nx generate @nrwl/angular:library --name=my-lib-name --directory=custom-dir
Let me know if this works! :)
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