You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/03/24 06:18:41 UTC
[jira] [Commented] (CB-12425) Auto-create a package.json if it
doesn't exist yet
[ https://issues.apache.org/jira/browse/CB-12425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15939892#comment-15939892 ]
ASF GitHub Bot commented on CB-12425:
-------------------------------------
Github user stevengill commented on a diff in the pull request:
https://github.com/apache/cordova-lib/pull/521#discussion_r107840945
--- Diff: cordova-lib/src/cordova/restore-util.js ---
@@ -63,7 +64,27 @@ function installPlatformsFromConfigXML(platforms, opts) {
// Combining arrays and checking duplicates.
comboArray = pkgJsonPlatforms.slice();
}
+
engines = cfg.getEngines(projectHome);
+
+ if(fs.existsSync(pkgJsonPath)) {
+ pkgJson = require(pkgJsonPath);
+ // TODO: Eventually refactor out to pacakge manager module.
--- End diff --
what is this TODO comment about
> Auto-create a package.json if it doesn't exist yet
> --------------------------------------------------
>
> Key: CB-12425
> URL: https://issues.apache.org/jira/browse/CB-12425
> Project: Apache Cordova
> Issue Type: Improvement
> Components: CordovaLib
> Affects Versions: cordova-7
> Reporter: Audrey So
> Assignee: Audrey So
> Labels: cordova-7.0.0
>
> When restoring during cordova prepare, auto-create a package.json if it doesn't exist yet.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org