sindresorhus/cpy (cpy)
Compare Source
- Add file
sourcePath and destinationPath to the progress event (#112) 936710e
Compare Source
Breaking
Fixes
- Fix: Make
rename function receive filename with extension (#110) cdb7ed4
- In v9, it incorrectly received a filename without extension.
Compare Source
Compare Source
Breaking
- This package is now pure ESM. Please read this.
- Require Node.js 12
Recursive by default
parents option was removed
- to get flat list of files use
flat: true option
Example directory structure:
- .github/workflows/main.yml
- .github/funding.yml
Command: cpy('.github/**', 'dest')
Old output:
- dest/funding.yml
- dest/main.yml
New output:
- dest/workflows/main.yml
- dest/main.yml
Recreate old parents: true
Example directory structure:
- .github/workflows/main.yml
- .github/funding.yml
Old:
cpy('.github/**', 'dest', {parents: true})
New:
cpy('.github', 'dest')
Output:
- dest/.github/workglows/main.yml
- dest/.github/funding.yml
Recreate old parents: false
Example directory structure:
- .github/workflows/main.yml
- .github/funding.yml
Old:
cpy('.github/**', 'dest', {parents: false})
New:
cpy('.github', 'dest', {flat: true})
Output:
- dest/main.yml
- dest/funding.yml
Copy all package.json and preserve folder structure
Old:
cpy('node_modules/**/package.json', 'dest', {parents: true})
Old output:
New:
cpy('node_modules/**/package.json', 'dest')
New output:
Mend Renovate
This PR contains the following updates:
^8.1.2->^10.0.0Release Notes
sindresorhus/cpy (cpy)
v10.1.0Compare Source
sourcePathanddestinationPathto the progress event (#112)936710ev10.0.0Compare Source
Breaking
f18399dFixes
renamefunction receive filename with extension (#110)cdb7ed4v9.0.1Compare Source
flatoption when copying a single file (#101)2014a4fv9.0.0Compare Source
Breaking
Recursive by default
parentsoption was removedflat: trueoptionExample directory structure:
Command:
cpy('.github/**', 'dest')Old output:
New output:
Recreate old
parents: trueExample directory structure:
Old:
cpy('.github/**', 'dest', {parents: true})New:
cpy('.github', 'dest')Output:
Recreate old
parents: falseExample directory structure:
Old:
cpy('.github/**', 'dest', {parents: false})New:
cpy('.github', 'dest', {flat: true})Output:
Copy all package.json and preserve folder structure
Old:
cpy('node_modules/**/package.json', 'dest', {parents: true})Old output:
New:
cpy('node_modules/**/package.json', 'dest')New output:
Configuration
📅 Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.