Skip to content

Commit f9ab108

Browse files
committed
chore: switch to tinyglobby
1 parent 4989547 commit f9ab108

File tree

5 files changed

+26
-7
lines changed

5 files changed

+26
-7
lines changed

packages/cli-upload/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
},
3535
"dependencies": {
3636
"@percy/cli-command": "1.31.0",
37-
"fast-glob": "^3.2.11",
38-
"image-size": "^1.0.0"
37+
"image-size": "^1.0.0",
38+
"tinyglobby": "^0.2.14"
3939
}
4040
}

packages/cli-upload/src/upload.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,11 @@ export const upload = command('upload', {
6868
if (!percy) exit(0, 'Percy is disabled');
6969
let config = percy.config.upload;
7070

71-
let { default: glob } = await import('fast-glob');
71+
let { glob } = await import('tinyglobby');
7272
let pathnames = yield glob(config.files, {
7373
ignore: [].concat(config.ignore || []),
7474
cwd: args.dirname,
75+
expandDirectories: false,
7576
fs
7677
});
7778

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@
5252
"content-disposition": "^0.5.4",
5353
"cross-spawn": "^7.0.3",
5454
"extract-zip": "^2.0.1",
55-
"fast-glob": "^3.2.11",
5655
"micromatch": "^4.0.8",
5756
"mime-types": "^2.1.34",
5857
"pako": "^2.1.0",
5958
"path-to-regexp": "^6.3.0",
6059
"rimraf": "^3.0.2",
60+
"tinyglobby": "^0.2.14",
6161
"ws": "^8.17.1",
6262
"yaml": "^2.4.1"
6363
}

packages/core/src/api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ export function createStaticServer(options) {
270270

271271
// include automatic sitemap route
272272
server.route('get', `${baseUrl}/sitemap.xml`, async (req, res) => {
273-
let { default: glob } = await import('fast-glob');
274-
let files = await glob('**/*.html', { cwd: dir, fs });
273+
let { glob } = await import('tinyglobby');
274+
let files = await glob('**/*.html', { cwd: dir, expandDirectories: false, fs });
275275

276276
return res.send(200, 'application/xml', [
277277
'<?xml version="1.0" encoding="UTF-8"?>',

yarn.lock

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4366,7 +4366,7 @@ fast-glob@3.2.7:
43664366
merge2 "^1.3.0"
43674367
micromatch "^4.0.4"
43684368

4369-
fast-glob@^3.2.11, fast-glob@^3.2.9:
4369+
fast-glob@^3.2.9:
43704370
version "3.3.3"
43714371
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.3.tgz#d06d585ce8dba90a16b0505c543c3ccfb3aeb818"
43724372
integrity sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==
@@ -4406,6 +4406,11 @@ fd-slicer@~1.1.0:
44064406
dependencies:
44074407
pend "~1.2.0"
44084408

4409+
fdir@^6.4.4:
4410+
version "6.4.5"
4411+
resolved "https://registry.yarnpkg.com/fdir/-/fdir-6.4.5.tgz#328e280f3a23699362f95f2e82acf978a0c0cb49"
4412+
integrity sha512-4BG7puHpVsIYxZUbiUE3RqGloLaSSwzYie5jvasC4LWuBWzZawynvYouhjbQKw2JuIGYdm0DzIxl8iVidKlUEw==
4413+
44094414
figures@3.2.0, figures@^3.0.0:
44104415
version "3.2.0"
44114416
resolved "https://registry.yarnpkg.com/figures/-/figures-3.2.0.tgz#625c18bd293c604dc4a8ddb2febf0c88341746af"
@@ -7138,6 +7143,11 @@ picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2, picomatch@^2.3.1:
71387143
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42"
71397144
integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==
71407145

7146+
picomatch@^4.0.2:
7147+
version "4.0.2"
7148+
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-4.0.2.tgz#77c742931e8f3b8820946c76cd0c1f13730d1dab"
7149+
integrity sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==
7150+
71417151
pify@^2.3.0:
71427152
version "2.3.0"
71437153
resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c"
@@ -8258,6 +8268,14 @@ through@2, "through@>=2.2.7 <3", through@^2.3.4, through@^2.3.6:
82588268
resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5"
82598269
integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=
82608270

8271+
tinyglobby@^0.2.14:
8272+
version "0.2.14"
8273+
resolved "https://registry.yarnpkg.com/tinyglobby/-/tinyglobby-0.2.14.tgz#5280b0cf3f972b050e74ae88406c0a6a58f4079d"
8274+
integrity sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==
8275+
dependencies:
8276+
fdir "^6.4.4"
8277+
picomatch "^4.0.2"
8278+
82618279
tmp@^0.0.33:
82628280
version "0.0.33"
82638281
resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9"

0 commit comments

Comments
 (0)