[iobroker-bot] Remove deprecated common.main attribute from io-package.json #19
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
German description can be found below
Deutsche Beschreibung weiter unten
General information
This PR has been created by iobroker-bot. Please review the changes carefully and merge the PR if the review is ok.
Feel free to contact me (@ioBroker-Bot) if you have any questions or feel that a PR is faulty. Please open an issue at repository https://github.com/ioBroker/ioBroker.repochecker to report a faulty PR.
And THANKS A LOT for maintaining this adapter from me and all users.
Let's work together for the best user experience.
your
ioBroker Check and Service Bot
@mcm1957 for evidence
Changes provided by this PR
This PR fixes the warning [W1084] "common.main" is deprecated and ignored. Please remove from io-package.json. Executable is defined by entry "main" at package.json. reported by the ioBroker repository checker.
Background
The
common.mainattribute inio-package.jsonwas historically used to specify the main executable file of an adapter. However, this attribute is now deprecated and ignored by the ioBroker system.The correct location for defining the main executable is the
mainattribute inpackage.json, which is the standard location for all Node.js packages. Having the redundantcommon.mainattribute inio-package.jsoncan cause confusion and should be removed.More information about io-package.json attributes can be found in the ioBroker documentation.
Changes
This PR removes the deprecated
common.mainattribute fromio-package.json. The main executable continues to be properly defined in themainattribute ofpackage.json.Deutsche Beschreibung
Allgemeine Informationen
Dieser PR wurde von iobroker-bot erstellt. Bitte die Änderungen sorgfältig prüfen und den PR bei erfolgreicher Prüfung mergen.
Bei Fragen oder falls ein PR fehlerhaft erscheint, bitte mich (@ioBroker-Bot) kontaktieren. Bitte ein Issue im Repository https://github.com/ioBroker/ioBroker.repochecker öffnen, um einen fehlerhaften PR zu melden.
Und VIELEN DANK für die Pflege dieses Adapters von mir und allen Nutzern.
Gemeinsam für die beste Benutzererfahrung arbeiten.
Euer
ioBroker Check and Service Bot
@mcm1957 zur Kenntnisnahme
Durch diesen PR bereitgestellte Änderungen
Dieser PR behebt die Warnung [W1084] "common.main" is deprecated and ignored. Please remove from io-package.json. Executable is defined by entry "main" at package.json., die vom ioBroker Repository Checker gemeldet wurde.
Hintergrund
Das Attribut
common.mainin derio-package.jsonwurde historisch verwendet, um die ausführbare Hauptdatei eines Adapters zu spezifizieren. Dieses Attribut ist jedoch mittlerweile veraltet und wird vom ioBroker-System ignoriert.Der korrekte Ort zur Definition der ausführbaren Hauptdatei ist das Attribut
mainin derpackage.json, welches der Standardort für alle Node.js-Pakete ist. Das redundante Attributcommon.mainin derio-package.jsonkann zu Verwirrung führen und sollte entfernt werden.Weitere Informationen zu io-package.json-Attributen finden sich in der ioBroker-Dokumentation.
Änderungen
Dieser PR entfernt das veraltete Attribut
common.mainaus derio-package.json. Die ausführbare Hauptdatei bleibt weiterhin korrekt im Attributmainderpackage.jsondefiniert.Template: W1084-removeCommonMain