NativeScript / NativeScript/nativescript-cli
Plugin update won't work with locally developed plugin
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 1.1k
- Fork
- 204
- Merge medio
- 1g 9h
- PR unite (30g)
- 8
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia riproducendo il comportamento con tns plugin add plugins/nativescript-myplugin/src/, quindi esegui sia tns plugin update nativescript-myplugin sia il comando di aggiornamento basato sul percorso. Traccia il punto di ingresso della CLI di tns plugin update e confronta il modo in cui i plugin locali installati vengono registrati e risolti. Il lavoro è completato quando il plugin locale può essere aggiornato per nome o percorso senza recuperare un pacchetto npm non disponibile.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- cli
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100