Thursday, 16 March 2017

Verifying Angular modules version dependencies

I come from Java/Maven environment and have trouble understanding versioning in npm. It seems very fragile.

How to make sure all versions in npm package are correct? It seems that some parts of @angular have versions independent from the rest of Angular packages (for example @angular/router, @angular/animations) Can wildcards be used like that to keep all modules at correct version?

"dependencies": {
    "@angular/common": "^2.4.*",
    "@angular/compiler": "^2.4.*",
    "@angular/core": "^2.4.*",
    "@angular/forms": "^2.4.*",
    "@angular/http": "^2.4.*",
    "@angular/platform-browser": "^2.4.*",
    "@angular/platform-browser-dynamic": "^2.4.*",
    "@angular/router": "^3.4.*",
    "core-js": "^2.4.1",
    "font-awesome": "^4.7.0",
    "primeng": "^2.0.*",
    "rxjs": "^5.1.0",
    "zone.js": "^0.7.6"
  },



via Karolis

No comments:

Post a Comment