Skip to content

Commit

Permalink
Upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Sep 11, 2021
1 parent 88eab7f commit 61647d2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ jobs:
fail-fast: false
matrix:
node-version:
- 14
- 12
- 16
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
Expand Down
5 changes: 4 additions & 1 deletion cli.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env node
import process from 'node:process';
import meow from 'meow';
import stripAnsi from 'strip-ansi';
import getStdin from 'get-stdin';
Expand All @@ -10,7 +11,9 @@ const cli = meow(`
Example
$ ls --color | strip-ansi
`);
`, {
importMeta: import.meta,
});

const input = cli.input[0];

Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@
],
"dependencies": {
"get-stdin": "^9.0.0",
"meow": "^9.0.0",
"strip-ansi": "^7.0.0"
"meow": "^10.1.1",
"strip-ansi": "^7.0.1"
},
"devDependencies": {
"ava": "^3.15.0",
"execa": "^5.0.0",
"xo": "^0.38.2"
"execa": "^5.1.1",
"xo": "^0.44.0"
}
}
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test('main', async t => {

test('stdin', async t => {
const {stdout} = await execa('./cli.js', {
input: '\u001B[0m\u001B[4m\u001B[42m\u001B[31mfoo\u001B[39m\u001B[49m\u001B[24mfoo\u001B[0m'
input: '\u001B[0m\u001B[4m\u001B[42m\u001B[31mfoo\u001B[39m\u001B[49m\u001B[24mfoo\u001B[0m',
});
t.is(stdout, 'foofoo');
});

0 comments on commit 61647d2

Please sign in to comment.