-
Notifications
You must be signed in to change notification settings - Fork 1
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
Fixed and improved tests for non-npm usage #29
Fixed and improved tests for non-npm usage #29
Conversation
…pm and non-npm. Improved tests and added test suite for non-npm usage.
@restfulhead After some testing I realised the latest release of this plugin is broken as filtering doesn't seem to work for non-npm usage. This PR should hopefully fixes the issue but it's hard to know for sure as I need the new version of the code to be released before importing it in my projects (because local auto plugins are broken see intuit/auto#2019). |
@Maxim-Durand Thanks for testing and providing a fix. I will try to test this for the NPM use case later.
Update: Auto does a |
Released to NPM as |
Thanks for the quick release ! 🙏 After some testing I realised my change 3. was incorrect and there is indeed a bug in I found the reason why and fixed the bug in intuit/auto#2456 Will report back when it's merged to see if this plugin does work as expected on non-npm usage. |
@Maxim-Durand Given that this is probably a breaking change and that it'll take time to merge, I think we should revert the path changes and cut another release until it's fixed. Would you agree? |
Sorry I didn't see your message sooner. Yes I also agree the change 3. should be reverted for now. Honestly, I'm not even sure |
Following changes:
File path used in fake commits for tests were from the wrong directory, fixed that.
currentWorkspace
definition wasn't generic and would fail for other project file structure, see thesubstring(11)
innpm-auto-plugins/packages/filter-by-workspace-path/src/index.ts
Line 56 in b509925
Also removed:
as I couldn't see this behaviour when testing, instead I think the reason for this codepath was the mistake in 1.
non-npm
usage.