4

Is there a way to use a variable in package.json? so if I want to swap all angular versions I can just do it one spot, instead of 11...

  },
  "dependencies": {
    "@angular/common": "2.3",
    "@angular/compiler": "2.3",
    "@angular/core": "2.3",
    "@angular/forms": "2.3",
    "@angular/http": "2.3",
    "@angular/platform-browser": "2.3",
    "@angular/platform-browser-dynamic": "2.3",
    "@angular/router": "3.2.1",
    "@types/bootbox": "^4.4.30",
    "@types/immutable": "^3.8.6",
    "@types/lodash": "^4.14.41",
    "@types/redux": "^3.6.0",
    "@types/redux-thunk": "^2.1.32",

Maybe gulp to the rescue?

tx

Sean

smnbbrv
  • 23,502
  • 9
  • 78
  • 109
born2net
  • 24,129
  • 22
  • 65
  • 104
  • 2
    Possible duplicate of [How can I use variables in package.json?](https://stackoverflow.com/questions/43705195/how-can-i-use-variables-in-package-json) – barbsan Feb 15 '19 at 12:25
  • Answer: https://stackoverflow.com/a/51029764/6112685 – Abhay Jan 19 '23 at 08:33

0 Answers0