Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Dec 6, 2019
1 parent a31ef18 commit 4f843b3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
}
}
4 changes: 0 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,19 @@

> Copy files

## Why

- Fast by using streams.
- Resilient by using [graceful-fs](https://github.com/isaacs/node-graceful-fs).
- 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

```
Expand All @@ -42,7 +39,6 @@ $ cpy --help
$ cpy '**/*.html' '../dist/' --cwd=src --parents
```


## Related

- [cpy](https://github.com/sindresorhus/cpy) - API for this module
5 changes: 2 additions & 3 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/);
});

Expand Down

0 comments on commit 4f843b3

Please sign in to comment.