Comparing version 2.0.0 to 3.0.0
31
cli.js
@@ -8,3 +8,3 @@ #!/usr/bin/env node | ||
Usage | ||
$ cpy <source>... <destination> | ||
$ cpy <source …> <destination> | ||
@@ -45,14 +45,19 @@ Options | ||
cpy(cli.input, cli.input.pop(), { | ||
cwd: cli.flags.cwd, | ||
rename: cli.flags.rename, | ||
parents: cli.flags.parents, | ||
overwrite: cli.flags.overwrite | ||
}).catch(err => { | ||
if (err.name === 'CpyError') { | ||
console.error(err.message); | ||
process.exit(1); | ||
} else { | ||
throw err; | ||
(async () => { | ||
try { | ||
await cpy(cli.input, cli.input.pop(), { | ||
cwd: cli.flags.cwd, | ||
rename: cli.flags.rename, | ||
parents: cli.flags.parents, | ||
overwrite: cli.flags.overwrite | ||
}); | ||
} catch (error) { | ||
if (error.name === 'CpyError') { | ||
console.error(error.message); | ||
process.exit(1); | ||
} else { | ||
throw error; | ||
} | ||
} | ||
}); | ||
})(); | ||
{ | ||
"name": "cpy-cli", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "Copy files", | ||
"license": "MIT", | ||
"repository": "sindresorhus/cpy-cli", | ||
"funding": "https://github.com/sponsors/sindresorhus", | ||
"author": { | ||
@@ -23,3 +24,3 @@ "name": "Sindre Sorhus", | ||
"engines": { | ||
"node": ">=6" | ||
"node": ">=8" | ||
}, | ||
@@ -53,12 +54,12 @@ "scripts": { | ||
"dependencies": { | ||
"cpy": "^7.0.0", | ||
"cpy": "^8.0.0", | ||
"meow": "^5.0.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "*", | ||
"execa": "^0.10.0", | ||
"path-exists": "^3.0.0", | ||
"tempfile": "^2.0.0", | ||
"xo": "*" | ||
"ava": "^2.4.0", | ||
"execa": "^1.0.0", | ||
"path-exists": "^4.0.0", | ||
"tempfile": "^3.0.0", | ||
"xo": "^0.25.3" | ||
} | ||
} |
@@ -5,3 +5,2 @@ # cpy-cli [![Build Status](https://travis-ci.org/sindresorhus/cpy-cli.svg?branch=master)](https://travis-ci.org/sindresorhus/cpy-cli) | ||
## Why | ||
@@ -14,3 +13,2 @@ | ||
## Install | ||
@@ -22,3 +20,2 @@ | ||
## Usage | ||
@@ -30,3 +27,3 @@ | ||
Usage | ||
$ cpy <source>... <destination> | ||
$ cpy <source …> <destination> | ||
@@ -49,10 +46,4 @@ Options | ||
## Related | ||
- [cpy](https://github.com/sindresorhus/cpy) - API for this module | ||
## License | ||
MIT © [Sindre Sorhus](https://sindresorhus.com) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4507
54
45
+ Addedaggregate-error@3.1.0(transitive)
+ Addedarrify@2.0.1(transitive)
+ Addedclean-stack@2.2.0(transitive)
+ Addedcp-file@7.0.0(transitive)
+ Addedcpy@8.1.2(transitive)
+ Addedhas-glob@1.0.0(transitive)
+ Addedindent-string@4.0.0(transitive)
+ Addedjunk@3.1.0(transitive)
+ Addedmake-dir@3.1.0(transitive)
+ Addedp-all@2.1.0(transitive)
+ Addedp-event@4.2.0(transitive)
+ Addedp-filter@2.1.0(transitive)
+ Addedp-finally@1.0.0(transitive)
+ Addedp-map@2.1.03.0.0(transitive)
+ Addedp-timeout@3.2.0(transitive)
+ Addedsemver@6.3.1(transitive)
- Removedcp-file@6.2.0(transitive)
- Removedcpy@7.3.0(transitive)
- Removedmake-dir@2.1.0(transitive)
- Removedsafe-buffer@5.2.1(transitive)
Updatedcpy@^8.0.0