Skip to content

Releases: sindresorhus/cpy

v11.1.0

26 Jul 15:25
Compare
Choose a tag to compare

v11.0.1

10 Mar 15:33
Compare
Choose a tag to compare

v11.0.0...v11.0.1

v11.0.0

05 Nov 09:10
Compare
Choose a tag to compare

Breaking

Improvements

Maintenance

  • This package has a lot of problems and I unfortunately don't have time to fix them. I would recommend against using this package until these problems are resolved. Help welcome (see the issue tracker).

v10.1.0...v11.0.0

v10.1.0

10 May 13:31
Compare
Choose a tag to compare
  • Add file sourcePath and destinationPath to the progress event (#112) 936710e

v10.0.0...v10.1.0

v10.0.0

02 May 18:30
Compare
Choose a tag to compare

Breaking

Fixes

  • Fix: Make rename function receive filename with extension (#110) cdb7ed4
    • In v9, it incorrectly received a filename without extension.

v9.0.1...v10.0.0

v9.0.1

07 Mar 09:12
Compare
Choose a tag to compare
  • Fix flat option when copying a single file (#101) 2014a4f

v9.0.0...v9.0.1

v9.0.0

27 Feb 09:46
Compare
Choose a tag to compare

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:

v8.1.2...v9.0.0

v8.1.2

05 Mar 11:12
Compare
Choose a tag to compare

v8.1.1...v8.1.2

v8.1.1

02 Sep 23:36
Compare
Choose a tag to compare

v8.1.0...v8.1.1

v8.1.0

07 Mar 05:36
Compare
Choose a tag to compare

v8.0.1...v8.1.0