Skip to content

Commit 4e392bf

Browse files
committed
fix(deps): replace fast-glob with tinyglobby
1 parent 80b9666 commit 4e392bf

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

package-lock.json

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/zip-it-and-ship-it/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
"es-module-lexer": "^1.0.0",
5353
"esbuild": "0.19.11",
5454
"execa": "^7.0.0",
55-
"fast-glob": "^3.3.2",
5655
"filter-obj": "^5.0.0",
5756
"find-up": "^6.0.0",
5857
"is-builtin-module": "^3.1.0",

packages/zip-it-and-ship-it/src/runtimes/node/utils/included_files.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,13 @@ export const getPathsOfIncludedFiles = async (
5656
onlyFiles: false,
5757
// get directories as well to get symlinked directories,
5858
// to filter the regular non symlinked directories out mark them with a slash at the end to filter them out.
59+
// TODO(serhalp) If we can find a better way to do this, we can use tinyglobby here and remove fast-glob entirely.
5960
markDirectories: true,
6061
followSymbolicLinks: false,
6162
})
6263

64+
// now filter the non symlinked directories out that got marked with a trailing slash
6365
const paths = pathGroups.filter((path) => !path.endsWith('/')).map(normalize)
6466

65-
// now filter the non symlinked directories out that got marked with a trailing slash
6667
return { excludePatterns, paths }
6768
}

packages/zip-it-and-ship-it/tests/main.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import cpy from 'cpy'
66
import decompress from 'decompress'
77
import merge from 'deepmerge'
88
import { execa, execaNode } from 'execa'
9-
import glob from 'fast-glob'
109
import isCI from 'is-ci'
1110
import { pathExists } from 'path-exists'
1211
import semver from 'semver'
12+
import { glob } from 'tinyglobby'
1313
import { dir as getTmpDir, tmpName } from 'tmp-promise'
1414
import unixify from 'unixify'
1515
import { afterAll, afterEach, beforeAll, describe, expect, test, vi } from 'vitest'

packages/zip-it-and-ship-it/tests/telemetry.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { join } from 'path'
22

33
import decompress from 'decompress'
4-
import glob from 'fast-glob'
4+
import { glob } from 'tinyglobby'
55
import { dir as getTmpDir } from 'tmp-promise'
66
import { expect, test } from 'vitest'
77

0 commit comments

Comments
 (0)