Closed PabloHidalgo closed 6 years ago
Thanks for the PR! - good to see people using my addon.
As for checking whether pkgPath
exists; the code relied on the assumption that every npm- or bower package specified the addon-consuming project has a bower.json
or package.json
specified in its folder root itself, since it is imported via that file. Actually, how does the blueimp-canvas-to-blob
package not have a package.json
defined in its folder root? 😅
Anyhow, it does make good sense to add a check to prevent the entire build failing in this very rare case where a project doesn't have its npm- or bower file defined. ✌🏻 Merged.
PS - please star ⭐️ the repo if you like it! Cheers.
Hi @dunnkers,
As you state, there are very rare cases where the 3rd party dependency doesn't contains a package/bower file, I found it on a few plugins we use on our application (doesn't remember right now), but as it's something we can't handle...better to prevent the build failing!
Thanks for your good work on the addon and your fast answer to the PR :)
BTW: Thanks for code review too!!