NativeScript / NativeScript/nativescript-cli
Plugin update won't work with locally developed plugin
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- JavaScript
- Estrelas
- 1.1k
- Forks
- 204
- Merge médio
- 1d 9h
- PRs com merge (30d)
- 8
Descrição
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.
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Comece reproduzindo o comportamento com tns plugin add plugins/nativescript-myplugin/src/ e, em seguida, execute tanto tns plugin update nativescript-myplugin quanto o comando de atualização baseado em caminho. Rastreie o ponto de entrada da CLI de tns plugin update e compare como os plugins locais instalados são registrados e resolvidos. Está concluído quando for possível atualizar o plugin local por nome ou caminho sem buscar um pacote npm indisponível.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- javascript
- Domínio
- cli
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100