NativeScript / NativeScript/nativescript-cli
Plugin update won't work with locally developed plugin
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- JavaScript
- Estrellas
- 1.1k
- Forks
- 204
- Merge medio
- 1 d 9 h
- PR fusionados (30 d)
- 8
Descripción
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.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Empieza reproduciendo el comportamiento con tns plugin add plugins/nativescript-myplugin/src/ y, después, ejecuta tanto tns plugin update nativescript-myplugin como el comando de actualización basado en la ruta. Sigue el punto de entrada de la CLI de tns plugin update y compara cómo se registran y resuelven los plugins locales instalados. Se considera terminado cuando el plugin local se puede actualizar por nombre o por ruta sin descargar un paquete de npm no disponible.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript
- Área
- cli
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100