Skip to content

Commit bc489b4

Browse files
Bump dev dependencies (#207)
Co-authored-by: Sindre Sorhus <[email protected]>
1 parent aede62e commit bc489b4

File tree

9 files changed

+21
-18
lines changed

9 files changed

+21
-18
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
node-version:
13+
- 18
1314
- 16
15+
- 14
1416
steps:
15-
- uses: actions/checkout@v2
16-
- uses: actions/setup-node@v2
17+
- uses: actions/checkout@v3
18+
- uses: actions/setup-node@v3
1719
with:
1820
node-version: ${{ matrix.node-version }}
1921
- run: npm install

index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ export interface Options<Flags extends AnyFlags> {
197197
//}
198198
```
199199
*/
200+
// eslint-disable-next-line @typescript-eslint/ban-types
200201
readonly booleanDefault?: boolean | null | undefined;
201202

202203
/**

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {dirname} from 'node:path';
2+
import process from 'node:process';
23
import {fileURLToPath} from 'node:url';
34
import buildParserOptions from 'minimist-options';
45
import parseArguments from 'yargs-parser';
@@ -99,6 +100,7 @@ const validateFlags = (flags, options) => {
99100
}
100101
};
101102

103+
/* eslint complexity: off */
102104
const meow = (helpText, options = {}) => {
103105
if (typeof helpText !== 'string') {
104106
options = helpText;

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@
5757
},
5858
"devDependencies": {
5959
"ava": "^3.15.0",
60-
"execa": "^5.1.1",
60+
"execa": "^6.1.0",
6161
"indent-string": "^5.0.0",
62-
"read-pkg": "^6.0.0",
63-
"tsd": "^0.17.0",
64-
"xo": "^0.41.0"
62+
"read-pkg": "^7.1.0",
63+
"tsd": "^0.20.0",
64+
"xo": "^0.48.0"
6565
},
6666
"xo": {
6767
"rules": {

test/allow-unkonwn-flags.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import path from 'node:path';
22
import {fileURLToPath} from 'node:url';
33
import test from 'ava';
4-
import execa from 'execa';
4+
import {execa} from 'execa';
55

66
const __dirname = path.dirname(fileURLToPath(import.meta.url));
77
const fixtureAllowUnknownFlags = path.join(__dirname, 'fixtures', 'fixture-allow-unknown-flags.js');

test/fixtures/fixture-required-function.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,9 @@ const cli = meow({
2323
},
2424
shouldError: {
2525
type: 'boolean',
26-
isRequired: (flags, _) => {
27-
if (flags.allowError) {
28-
return 'should error';
29-
}
30-
31-
return false;
32-
},
26+
isRequired: (flags, _) =>
27+
flags.allowError ? 'should error' : false
28+
,
3329
},
3430
},
3531
});

test/fixtures/fixture.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env node
2+
import process from 'node:process';
23
import meow from '../../index.js';
34

45
const cli = meow({

test/is-required-flag.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import path from 'node:path';
22
import {fileURLToPath} from 'node:url';
33
import test from 'ava';
4-
import execa from 'execa';
4+
import {execa} from 'execa';
55

66
const __dirname = path.dirname(fileURLToPath(import.meta.url));
77
const fixtureRequiredPath = path.join(__dirname, 'fixtures', 'fixture-required.js');

test/test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import path from 'node:path';
2+
import process from 'node:process';
23
import {fileURLToPath} from 'node:url';
34
import test from 'ava';
45
import indentString from 'indent-string';
5-
import execa from 'execa';
6-
import {readPackageAsync} from 'read-pkg';
6+
import {execa} from 'execa';
7+
import {readPackage} from 'read-pkg';
78
import meow from '../index.js';
89

910
const __dirname = path.dirname(fileURLToPath(import.meta.url));
@@ -55,7 +56,7 @@ test('support help shortcut', t => {
5556
});
5657

5758
test('spawn cli and show version', async t => {
58-
const pkg = await readPackageAsync();
59+
const pkg = await readPackage();
5960
const {stdout} = await execa(fixturePath, ['--version']);
6061
t.is(stdout, pkg.version);
6162
});

0 commit comments

Comments
 (0)