-
Notifications
You must be signed in to change notification settings - Fork 23
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
cpy-cli fails to copy a folder recursively #20
Comments
Since apparently, cpy doesn't currently support recursive copying, would it be possible to somehow switch providers from cpy-cli to ncp? Or maybe we could simply create a new util (say, Another alternative: a wrapper for fs-extra as nps utils. |
Update: I have a working setup with const { series, ncp } = require('nps-utils');
module.exports = {
scripts: {
someScript: series(
( ... ),
ncp('dist dist2')
)
}
} This successfully copies all contents of If you're fine with this implementation, I can make a PR to get this merged. |
That looks good to me! Feel free to make a pull request 👍 |
And thank you! |
Adds an alternative util to `copy (cpy-cli)` using `ncp` to allow recursive copying of directories. closes kentcdodds#20
* feat(ncp): add `ncp` which uses `ncp` Adds an alternative util to `copy (cpy-cli)` using `ncp` to allow recursive copying of directories. closes #20 * fix(relativeizePaths): escape RegExp to match Windows paths * fix(relativeizePaths): normalize Windows paths into Unix slashes * fix(relativeizePaths): fix CI build errors * fix(relativeizePaths): fix additional CI build errors * fix(relativeizePaths): fix comma-dangle lint error
Can't seem to copy folders with subfolders recursively using the built-in cpy-cli. See sindresorhus/cpy-cli#10.
Project is running on Windows.
The text was updated successfully, but these errors were encountered: