NativeScript / NativeScript/nativescript-cli

Updating package.json platform versions, doesn't work.

Offen
#5,422 1 Kommentar 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
JavaScript
Sterne
1.1k
Forks
204
Ø Merge
1 T. 9 Std.
Gemergte PRs (30 T.)
8

Beschreibung

Environment

  • CLI: 7.x

Describe the bug
Basically because we are using NPM now to manage the dependancies; it will store a copy of the runtime in @nativescript/ios or @nativescript/android if you bump the version of the package.json file; it will bump those copies; but the copy that we create in the "platforms/ios" or "platforms/android" remains whatever was their before.

Expected behavior
That I would have the version in the package.json file.

Additional context
We might need a post install script to clean the platforms/ios or platforms/android folder on install of the runtimes, so that way the next tns command will see the platforms folder empty and re-install the platforms from the npm version that was installed.

Possible corner case is if the CLI installs the platforms version before doing a npm i; we need to verify this isn't the case.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit nachzuverfolgen, wie package.json die Laufzeitkopien in @nativescript/ios und @nativescript/android aktualisiert, und vergleiche das anschließend mit der bestehenden Handhabung von platforms/ios und platforms/android. Überprüfe, ob die CLI Plattformen vor npm i installiert, und bewerte die vorgeschlagene Bereinigung nach der Installation. Als erledigt gilt die Aufgabe, wenn die Plattformordner die in package.json installierten Versionen verwenden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript
Bereich
cli, mobile-dev
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
30/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.