-
-
Notifications
You must be signed in to change notification settings - Fork 283
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
feat: implement support for array values in from
property. Closes #631
#645
base: master
Are you sure you want to change the base?
Conversation
`Invalid "pattern.from": ${item.from}, every element should be a string"` | ||
) | ||
); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid it, you validate it in schema already
) | ||
) | ||
)) | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not pass array to globby? They support it https://github.com/sindresorhus/globby#usage
}, | ||
"to": { | ||
"anyOf": [ | ||
"oneOf": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why it was changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some notes
Hi, I need this feature too, I notice this PR is stopped for a year, what can I do or contribute to make it go? |
Yes, feel free to send a new PR |
This PR contains an implementation for processing arrays in
from
property, and is:Motivation / Use-Case
In my project I'm missing
transformAll
on a bunch of files, so I've found a recent issue #631 and decided to implement it.Breaking Changes
There shouldn't be any breaking changes since it doesn't disable or break any scenario that was possible before, and only creates new (wonderful!) possibility to make copy scripts shorter and more powerful.
Additional Info