Skip to content

tns update should handle scoped packages #5149

Closed
@KristianDD

Description

@KristianDD

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI:

  • Cross-platform modules:

  • Android Runtime:

  • iOS Runtime:

  • Plugin(s):

  • Node.js:

  • Please, attach your package.json and webpack.config.js as these configurations are usually critical for investigating issues with webpack

Describe the bug
tns update won't update the @nativescript/core package if present in the projects` dependencies.

To Reproduce

1 tns create scopeTest --ts
2 npm i --save-exact "@nativescript/core@6.2.0"
3 tns update

Expected behavior
@nativescript/core to be updated to the version present in the template with the same major and minor and maximum patch version as the CLI. For example if the CLI is 6.2.0 we expect the version from template satisfying version ~6.2.0

Sample project

Additional context

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions