dshemendiuk / gulp-npm-dist

Copy minified (dist) files of modules listed in package.json "dependencies" field to your build path
26 stars 3 forks source link

"Main file not defined" warnings #3

Closed hisenb3rg closed 6 years ago

hisenb3rg commented 6 years ago

I'm getting this kind of warnings after running copy:libs task:

[18:27:19] Starting 'libs'...
Main file is not defined for the module body-parser
Main file is not defined for the module cookie-parser
Main file is not defined for the module express
Main file is not defined for the module morgan

Is this normal behaviour and is there any way to suppress it?

denkomanceski commented 6 years ago

I have the same issue, and it was weird why there was noone else complaining.. maybe because its just warnings, but its bugging me I cant sleep at night :D

dshemendiuk commented 6 years ago

This occurs when a package doesn't have a "main" field in package.json. I agree that it is not important to know so I remove this warning at v1.0.0