Skip to content

Plugin update won't work with locally developed plugin #3519

Open
@roncsak

Description

@roncsak

Hello,

Description

I created a tns app with tns create MyTnsApp --tsc and a plugin (with nativescript-plugin-seed) for it and put it to the plugins folder.

Here is the directory tree:

├── app
│   ├── package.json
│   └── <other files>
├── hooks
│   └── < ... >
├── node_modules
│   └── < ... >
├── package.json
├── platforms
│   └── < ... >
└── plugins
    └── nativescript-myplugin
        └── src
            ├── package.json
            └── < ... >

I can successfully add the plugin via: tns plugin add plugins/nativescript-myplugin/src/

I can successfully remove the plugin via: tns plugin remove nativescript-myplugin

The problem

Using tns plugin update nativescript-myplugin removes the plugin I want but it tries to get the source from https://registry.npmjs.org/nativescript-myplugin which drops a 404 error, of course.
So, the install fails.

Using tns plugin update plugins/nativescript-myplugin/src/ says "Plugin "plugins/nativescript-myplugin/src/" is not installed."

The expectation

I would like to update my plugin even if I develop it locally.
Either giving the path of the plugin or the name of it,update should work without a problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    pluginsto-be-checkedIssues that might be resolved in a previous release and need to be tested or clarified further

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions