GitHub user audreyso opened a pull request: https://github.com/apache/cordova-lib/pull/521
CB-12425 : Auto-create package.json if it doesn't exist yet (during prepare) <!-- Please make sure the checklist boxes are all checked before submitting the PR. The checklist is intended as a quick reference, for complete details please see our Contributor Guidelines: http://cordova.apache.org/contribute/contribute_guidelines.html Thanks! --> ### Platforms affected ### What does this PR do? Auto-creates package.json if it doesn't exist yet (during prepare) ### What testing has been done on this change? ### Checklist - [X] [Reported an issue](http://cordova.apache.org/contribute/issues.html) in the JIRA database - [X] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected. - [X] Added automated test coverage as appropriate for this change. You can merge this pull request into a Git repository by running: $ git pull https://github.com/audreyso/cordova-lib CB-12425 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cordova-lib/pull/521.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #521 ---- commit 12fea8d3cb40efe567aeca19108f4536942ca801 Author: Audrey So <audre...@apache.org> Date: 2017-02-23T00:24:48Z CB-12425 : autocreate a package.json if it doesn't exist during restore commit 6818e91739ab963e1cd12c9115c9dd943c57b466 Author: Audrey So <audre...@apache.org> Date: 2017-02-23T21:25:58Z CB-12425 : moved auto-create pkg.json code from restore-util to platform.js and plugin.js commit f29236ba7b528fe60bf86b1424ee8e9650621647 Author: Audrey So <audre...@apache.org> Date: 2017-02-24T00:36:05Z CB-12425 : added testing for pkgJson being auto-created ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org