We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@jcarbou commented on Tue Jan 17 2017
Hi all,
I add jquery-mousewheel in my package.json. This module declare a "jam" section without "main' attribute :
... "jam": { "dependencies": { "jquery": ">=1.2.2" } }, ... "main": "./jquery.mousewheel.js", ..
The npm-utils finds main of this module with the main method :
main
main: function(pkg) { var main; var steal = utils.pkg.config(pkg); if(steal && steal.main) { main = steal.main; } else if(typeof pkg.browser === "string") { if(utils.path.endsWithSlash(pkg.browser)) { main = pkg.browser + "index"; } else { main = pkg.browser; } } else if(typeof pkg.jam === "object") { main = pkg.jam.main; } else if(pkg.main) { main = pkg.main; } else { main = "index"; } ...
This function execute main = pkg.jam.main;and return null instead of ./jquery.mousewheel.js.
main = pkg.jam.main;
Simple fix :
else if(typeof pkg.jam === "object" && pkg.jam.main)
The text was updated successfully, but these errors were encountered:
@jcarbou Thanks for this find. Since it's such a simple fix mind sending a PR?
Sorry, something went wrong.
No problem. I will do that .
Thank you for your quick response.
Fixed by #218
No branches or pull requests
@jcarbou commented on Tue Jan 17 2017
Hi all,
I add jquery-mousewheel in my package.json. This module declare a "jam" section without "main' attribute :
The npm-utils finds
main
of this module with themain
method :This function execute
main = pkg.jam.main;
and return null instead of ./jquery.mousewheel.js.Simple fix :
else if(typeof pkg.jam === "object" && pkg.jam.main)
The text was updated successfully, but these errors were encountered: