Skip to content
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

Bug: Cannot pass custom process to copyOptions #200

Open
JRichlen opened this issue Jul 13, 2022 · 1 comment
Open

Bug: Cannot pass custom process to copyOptions #200

JRichlen opened this issue Jul 13, 2022 · 1 comment

Comments

@JRichlen
Copy link

Either a bug in fs.copyTpl(), or an error in the documentation.

Documentation says we should be able to pass in a customized process function to do manipulation/conflict resolution on the fly. (I'm attempting to automatically perform json merging on the fly based on path endings in yeoman). However, in the code, the process is defined after the spread. So any custom process passed in through options are wiped out.


process: (contents, filename) =>

@SBoudrias
Copy link
Owner

Ah it's likely a "documentation error" since it is referring to the copy options.

That being said, we could handle it manually after the template is processed. Would you be willing to send a PR for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants