npm cpy-cli 7.0.0

8 hours ago

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

Don't miss a new cpy-cli release

NewReleases is sending notifications on new releases.