To create a library in angular6 we use the following:
ng generate library my-lib
If we wish to remove the previously created library, what is the the command:
On a Fire tablet, Android device, or Chromebook In the OverDrive app, click or tap the icon in the top-left corner to open your Home menu. Select Manage libraries. Click or tap the trash icon next to the library you want to delete.
Where Is the Path of Your Custom Angular Library Defined? When you install a library package, the mapping is in the node_modules folder. When you build your own library, it has to be in the tsconfig path.
All you have to do is following steps :
Delete the folder projects/my-lib
.
Go to the angular.json
file and remove the "my-lib"
object section contained in "projects"
.
Go to tsconfig.json
and remove "my-lib"
object section from paths
.
If you are using Nx workspace 9.1.3 you can achieve that with remove workspace schematics plugin e.g. nx g @nrwl/workspace:remove <project-name>
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