I use several additional tools with Cordova for build management. Some of those watch for changes in files in order to rebuild/redistribute. Many hard-code watching the _package.json_ file. When running `cordova serve`, that calls `cordova prepare`, and _package.json_ gets updated, whether there are actually changes to it or not (e.g., no results from a diff). This causes those build watchers to fire, rebuild, copy some files to www, which causes Cordova's auto-reload to kick in, which updates _package.json_ again, which continues this infinite cycle.
Is there a way to avoid writing the exact same content to _package.json_ that already exists in that file on every restart/reload? I get we need _config.xml_ and _package.json_ to "jive" but if there's no diff between what Cordova is about to write to _package.json_ and what's already in _package.json_, can we skip the write? [ Full content available at: https://github.com/apache/cordova-lib/issues/694 ] This message was relayed via gitbox.apache.org for [email protected]
