Skip to content

node-package-manager assumes that platform package is always the first in the list of updated ones #3217

@buuhuu

Description

@buuhuu

In node-package-manager.ts#L158 the assumption is made that the installed platform package is always the first entry in the list of returned updated dependencies. In my setup I install a couple of file:... dependencies which are listed in the same place:

[
  {
    "action": "update",
    "name": "nativescript-adobe-marketing-cloud",
    "version": "file:nativescript-adobe-marketing-cloud-1.3.1.tgz",
    "path": "...",
    "previousVersion": ""
  },
  {
    "action": "update",
    "name": "nativescript-angular",
    "version": "file:nativescript-angular-3.1.3.tgz",
    "path": "...",
    "previousVersion": ""
  },
  {
    "action": "update",
    "name": "nativescript-google-maps-sdk",
    "version": "file:nativescript-google-maps-sdk-2.3.1.tgz",
    "path": "...",
    "previousVersion": ""
  },
  {
    "action": "update",
    "name": "nativescript-image-swipe",
    "version": "file:nativescript-image-swipe-2.0.3.tgz",
    "path": "...",
    "previousVersion": ""
  },
  {
    "action": "update",
    "name": "tns-android",
    "version": "3.1.1",
    "path": "...",
    "previousVersion": "3.1.1"
  }
]

And tns-android in that case it the last entry.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions