diff --git a/package.json b/package.json index c7f1429..c773078 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "Copy files", "license": "MIT", "repository": "sindresorhus/cpy-cli", + "funding": "https://github.com/sponsors/sindresorhus", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -49,14 +50,14 @@ "contents" ], "dependencies": { - "cpy": "^7.2.0", + "cpy": "^8.0.0", "meow": "^5.0.0" }, "devDependencies": { - "ava": "^1.4.1", + "ava": "^2.4.0", "execa": "^1.0.0", "path-exists": "^4.0.0", "tempfile": "^3.0.0", - "xo": "^0.24.0" + "xo": "^0.25.3" } } diff --git a/readme.md b/readme.md index feee2d3..c4e0554 100644 --- a/readme.md +++ b/readme.md @@ -2,7 +2,6 @@ > Copy files - ## Why - Fast by using streams. @@ -10,14 +9,12 @@ - User-friendly by accepting [globs](https://github.com/sindresorhus/globby#globbing-patterns) and creating non-existant destination directories. - User-friendly error messages. - ## Install ``` $ npm install --global cpy-cli ``` - ## Usage ``` @@ -42,7 +39,6 @@ $ cpy --help $ cpy '**/*.html' '../dist/' --cwd=src --parents ``` - ## Related - [cpy](https://github.com/sindresorhus/cpy) - API for this module diff --git a/test.js b/test.js index c6220e8..e99ca4b 100644 --- a/test.js +++ b/test.js @@ -12,11 +12,10 @@ test.beforeEach(t => { }); test('missing file operands', async t => { - await t.throwsAsync(execa('./cli.js'), /`files` and `destination` required/); + await t.throwsAsync(execa('./cli.js'), /`source` and `destination` required/); }); -// TODO: Blocked by https://github.com/mrmlnc/fast-glob/issues/110 -test.failing('source file does not exist', async t => { +test('source file does not exist', async t => { await t.throwsAsync(execa('./cli.js', [path.join(t.context.tmp, 'nonexistentfile'), t.context.tmp]), /nonexistentfile/); });