Skip to content

Commit 79765fb

Browse files
committedDec 6, 2021
Upgrade dev dependencies
Closes #198
1 parent 6e09986 commit 79765fb

File tree

5 files changed

+25
-14
lines changed

5 files changed

+25
-14
lines changed
 

‎bench.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* global after, before, bench, suite */
2+
import process from 'node:process';
23
import fs from 'node:fs';
34
import path from 'node:path';
45
import {fileURLToPath} from 'node:url';
@@ -56,7 +57,7 @@ const runners = [
5657
run: patterns => {
5758
fastGlob.sync(patterns);
5859
},
59-
}
60+
},
6061
];
6162

6263
const benchs = [
@@ -80,7 +81,7 @@ const benchs = [
8081
'a/*',
8182
'b/*',
8283
],
83-
}
84+
},
8485
];
8586

8687
before(() => {

‎gitignore.js

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import process from 'node:process';
12
import {promisify} from 'node:util';
23
import fs from 'node:fs';
34
import path from 'node:path';
@@ -90,7 +91,10 @@ export const isGitIgnored = async options => {
9091
options = normalizeOptions(options);
9192

9293
const paths = await fastGlob('**/.gitignore', {
93-
ignore: DEFAULT_IGNORE.concat(options.ignore),
94+
ignore: [
95+
...DEFAULT_IGNORE,
96+
...options.ignore,
97+
],
9498
cwd: options.cwd,
9599
});
96100

@@ -104,7 +108,10 @@ export const isGitIgnoredSync = options => {
104108
options = normalizeOptions(options);
105109

106110
const paths = fastGlob.sync('**/.gitignore', {
107-
ignore: DEFAULT_IGNORE.concat(options.ignore),
111+
ignore: [
112+
...DEFAULT_IGNORE,
113+
...options.ignore,
114+
],
108115
cwd: options.cwd,
109116
});
110117

‎index.test-d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import {Buffer} from 'node:buffer';
12
import {expectType} from 'tsd';
23
import {
34
GlobTask,

‎package.json

+7-8
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
},
1818
"scripts": {
1919
"bench": "npm update glob-stream fast-glob && matcha bench.js",
20-
"//test": "xo && ava && tsd",
21-
"test": "echo foo"
20+
"test": "xo && ava && tsd"
2221
},
2322
"files": [
2423
"index.js",
@@ -63,21 +62,21 @@
6362
"array-union": "^3.0.1",
6463
"dir-glob": "^3.0.1",
6564
"fast-glob": "^3.2.7",
66-
"ignore": "^5.1.8",
65+
"ignore": "^5.1.9",
6766
"merge2": "^1.4.1",
6867
"slash": "^4.0.0"
6968
},
7069
"devDependencies": {
71-
"@types/node": "^16.6.1",
70+
"@types/node": "^16.11.11",
7271
"ava": "^3.15.0",
7372
"get-stream": "^6.0.1",
74-
"glob-stream": "^6.1.0",
73+
"glob-stream": "^7.0.0",
7574
"globby": "sindresorhus/globby#main",
7675
"matcha": "^0.7.0",
7776
"rimraf": "^3.0.2",
78-
"tsd": "^0.17.0",
79-
"typescript": "^4.3.5",
80-
"xo": "^0.44.0"
77+
"tsd": "^0.19.0",
78+
"typescript": "^4.5.2",
79+
"xo": "^0.47.0"
8180
},
8281
"xo": {
8382
"ignores": [

‎test.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import process from 'node:process';
12
import fs from 'node:fs';
23
import path from 'node:path';
34
import util from 'node:util';
@@ -45,7 +46,8 @@ test.after(() => {
4546
});
4647

4748
test('glob - async', async t => {
48-
t.deepEqual((await globby('*.tmp')).sort(), ['a.tmp', 'b.tmp', 'c.tmp', 'd.tmp', 'e.tmp']);
49+
const result = await globby('*.tmp');
50+
t.deepEqual(result.sort(), ['a.tmp', 'b.tmp', 'c.tmp', 'd.tmp', 'e.tmp']);
4951
});
5052

5153
test('glob - async - multiple file paths', t => {
@@ -83,7 +85,8 @@ test('return [] for all negative patterns - async', async t => {
8385
});
8486

8587
test('glob - stream', async t => {
86-
t.deepEqual((await getStream.array(globbyStream('*.tmp'))).sort(), ['a.tmp', 'b.tmp', 'c.tmp', 'd.tmp', 'e.tmp']);
88+
const result = await getStream.array(globbyStream('*.tmp'));
89+
t.deepEqual(result.sort(), ['a.tmp', 'b.tmp', 'c.tmp', 'd.tmp', 'e.tmp']);
8790
});
8891

8992
test('glob - stream async iterator support', async t => {

0 commit comments

Comments
 (0)
Please sign in to comment.