tech-advantage / ngx-icon-picker

An Icon Picker Directive/Component for Angular 13+ which manages Font Awesome, Bootstrap Glyphicon, Font Awesome5 and Material.
MIT License
24 stars 33 forks source link

Improve package.json #60

Closed IBlackI closed 1 year ago

IBlackI commented 2 years ago

The current package.json does not follow the recommendations by Angular. https://angular.io/guide/creating-libraries#peer-dependencies. It would be best to move some of the dependencies to peerDependencies.

Furthermore some of the dependencies are marked using the ~ operator meaning they only allow increments in patch versions. The example below only accepts 12.0.x however it should use the ^ operator to accept all angular 12 packages. https://github.com/tech-advantage/ngx-icon-picker/blob/e16c6a8787431b4e18fb35f16a7c0ad530e7f092/package.json#L22 This causes issues for projects to install this package.

greg7859 commented 1 year ago

Deploy on npmjs.

Release: 1.10.0