Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
NOTE: I am about to submit a pull request with a fix for this issue. Description follows:
A global js-lint pass on the cordova-lib codebase on the 30/8/2017 caused references to the global 'package' variable in init-default.js to be renamed to 'pkg', presumably because the cordova-lib source doesn't declare a global variable called 'package' but does declare a global variable called 'pkg' (in cordova/info.js). However in this case, the 'package' variable refers to the one declared in the plugman source, specifically main.js, so it should have stayed as 'package'. To test the fix, run:
plugman createpackagejson .
Without the fix, this will trigger the following exception: 'pkg is not defined'. Having patched in the fix, running the command line should work as expected, prompting the user with questions and then spitting out a package.json file.