-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cordova run xxx regularly updates package.json with an empty line #441
Comments
markspanbroek
added a commit
to global-121/121-indy-wrapper-ios-testapp
that referenced
this issue
Aug 28, 2019
Cordova and npm both update package.json in conflicting ways. Npm inserts a final newline, and cordova removes a final newline. We'll stick with cordova's convention for now, because it is most likely that a cordova command has been called last. More info: apache/cordova-cli#441
arzyu
added a commit
to arzyu/cordova-plugin-package-json-guard
that referenced
this issue
Sep 10, 2019
I can confirm this happens to me too. |
BTW, @arzyu seems to have implemented a plugin just for this purpose ( that's crazy x-D ) |
Totally crazy :-) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Problem
Everytime I run
cordova run browser
, mypackage.json
file is locally updated :What is expected to happen?
package.json
is left unmodified, after anycordova run
call (which sounds to be idempotent)What does actually happen?
A new line is added at the end of
package.json
Information
You have a reproducer script below
Command or Code
Environment, Platform, Device
Mac OS X 10.14.4
Version information
Tested on cordova cli
7.1.0
,8.1.2
and9.0.0
No matter the platform and its version.
Checklist
The text was updated successfully, but these errors were encountered: