Skip to content

Releases: sindresorhus/cpy-cli

v7.0.0

05 Feb 07:40

Choose a tag to compare

Breaking

  • Single-file source with a destination that is not an existing directory now behaves like a file-to-file copy, matching cp 73722bc
    • If you previously relied on a no-op when patterns matched nothing, the CLI now exits with an error. Ensure your patterns match at least one file or handle the failure explicitly.
  • No matches now error out, consistent with cp 8c24e5c
    • If you previously relied on a new directory being created when copying a single file to a non-existent destination path, the destination is now treated as a file path. Use a trailing separator or an existing directory to force directory semantics.

New flags

  • --base to control how destination paths are calculated for patterns (cwd or pattern) 078a9b4
  • --dry-run to list files that would be copied without actually copying e5e8933
  • --update to copy only when the source is newer, or when sizes differ with the same modification time cb7c4cf
  • --ignore-existing to skip files that already exist at the destination without error 9a85af9

v6.0.0...v7.0.0

v6.0.0

13 Aug 04:29

Choose a tag to compare

Breaking


v5.0.0...v6.0.0

v5.0.0

28 Jun 19:30

Choose a tag to compare

Breaking

Improvements

v4.2.0...v5.0.0

v4.2.0

23 Aug 12:38

Choose a tag to compare

  • Make the --rename flag support string templates (#40) b42d028

v4.1.0...v4.2.0

v4.1.0

11 Mar 05:43

Choose a tag to compare

v4.0.0...v4.1.0

v4.0.0

01 Mar 07:00

Choose a tag to compare

Breaking

  • Require Node.js 12 (#31) 7ee777f
  • Remove the --parents flag. The copy is now recursive by default. To get flat output, use the --flat flag. Read more

Improvements

v3.1.1...v4.0.0

v3.1.1

04 May 06:02

Choose a tag to compare

v3.1.0...v3.1.1

v3.1.0

13 Feb 12:42

Choose a tag to compare

  • Allow patterns to match entries that begin with a period (.) (#20) 122f4de

v3.0.0...v3.1.0

v3.0.0

06 Dec 08:45

Choose a tag to compare

Breaking

v2.0.0...v3.0.0