We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hey π First thanks for the effort put in this project π
I have a project structure that looks like this:
project β ββββnode_modules β ββββmodule β ββββpublic β ββββdist β β styles.css β β index.html β ββββsrc
And I want to copy the public folder from node_modules/module/public into the src/public folder. So I run this command:
public
node_modules/module/public
src/public
$ yarn cpy ./node_modules/module/public ./src/public
It works but the final src/public folder contains all the files but not the initial folder structure:
# just the files β ββββsrc ββββpublic β styles.css β index.html
# expected folder structure β ββββsrc ββββpublic ββββdist β styles.css β index.html
And if I run it with the --parents I got this structure:
--parents
public β ββββnode_modules β ββββmodule β ββββpublic β ββββdist β β styles.css β β index.html
Has someone an idea how I could get the expected folder structure?
Thanks in advance π
The text was updated successfully, but these errors were encountered:
I think sindresorhus/cpy#77 will resolve your issue.
Sorry, something went wrong.
@sindresorhus
Is the following expected because sindresorhus/cpy#77 has been merged?
cpy node_modules/shiki/{dist,languages,themes} public/shiki --parents
This is now fixed in cpy, so someone just needs to bring the updates here. https://github.com/sindresorhus/cpy/releases/tag/v9.0.0
cpy
Successfully merging a pull request may close this issue.
Hey π First thanks for the effort put in this project π
I have a project structure that looks like this:
And I want to copy the
public
folder fromnode_modules/module/public
into thesrc/public
folder. So I run this command:It works but the final
src/public
folder contains all the files but not the initial folder structure:And if I run it with the
--parents
I got this structure:Has someone an idea how I could get the expected folder structure?
Thanks in advance π
The text was updated successfully, but these errors were encountered: