-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
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
Changed 'configObject' initilization statement to call 'requireFn()' … #104
Changed 'configObject' initilization statement to call 'requireFn()' … #104
Conversation
…function (instead of 'require()') when the 'config' option is provided as a string.
Great spot, looks good to me. Thank you! You can also add yourself to the |
It was a pleasure. Tnx! |
I'll release a new version today with this change! |
Out as 1.2.1, thanks again! |
This version change broke all of our current builds. We had to hard-code back 1.2.0. A minor-version increment should not be a breaking change. Hopefully this trace will help you resolve the issue:
Additionally, the plugin is initiated like so:
|
@goyney I apologise, I was under the impression that this wasn't a breaking change, else I wouldn't have released it as such. If you're able to push a simplified version that reproduces the bug that would be really useful. For now sticking to 1.2 shouldn't be that big of a deal. |
Alternatively you could pass If anyone can provide me with a repo that reproduces that would help a lot. |
On second thoughts I don't actually think that this PR should have been merged; @mwessner open another issue if you're having problems and we can look into it. |
I've opened a new issue, please refer to #106 for further discussion... |
Changed 'configObject' initilization statement to call 'requireFn()' function (instead of 'require()') when the 'config' option is provided as a string.
I have noticed that my Gulp plugins are not loaded when I provide the 'config' option. I have set the option to "package.json" (which is default) and it resolved to some other (undetermined) 'package.json' file. When 'config' option is not provided it resolves correctly since 'config' is then initialized by result of calling 'findup()' - which returns the full path to 'package.json' file inside the project folder (the one I wanted to target). It seems that resolving the filepath and setting the 'requireFn' is the goal of 'else if' block before the 'configObject' initialization, so it makes sense to utilize 'requireFn()' function instead of 'require()'.