Skip to content

Commit ca83d38

Browse files
committed
chore(deps): switch from fast-glob to tinyglobby
1 parent f39bf0c commit ca83d38

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

package-lock.json

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/framework-info/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@
7272
"devDependencies": {
7373
"cpy": "^11.0.0",
7474
"cpy-cli": "^5.0.0",
75-
"fast-glob": "^3.2.12",
7675
"npm-run-all2": "^5.0.0",
7776
"rollup-plugin-node-polyfills": "^0.2.1",
7877
"tmp-promise": "^3.0.2",
78+
"tinyglobby": "^0.2.13",
7979
"typescript": "^5.0.0",
8080
"vite": "^6.0.0",
8181
"vitest": "^0.34.0"

packages/framework-info/tests/frameworks.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { fileURLToPath } from 'url'
22

33
import Ajv from 'ajv'
4-
import glob from 'fast-glob'
4+
import { glob } from 'tinyglobby'
55
import { describe, expect, test } from 'vitest'
66

77
import { FRAMEWORK_NAMES } from '../src/generated/frameworkNames.js'
@@ -139,7 +139,7 @@ test.each(FRAMEWORKS)('Framework $id should have a valid shape', (framework) =>
139139
})
140140

141141
describe('JSON files', async () => {
142-
const jsonFiles = await glob('*.json', { cwd: fileURLToPath(FRAMEWORKS_DIR) })
142+
const jsonFiles = await glob('*.json', { cwd: fileURLToPath(FRAMEWORKS_DIR), expandDirectories: false })
143143

144144
test('each json file should be required in main.ts FRAMEWORKS', async () => {
145145
expect(FRAMEWORKS).toHaveLength(jsonFiles.length)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
"es-module-lexer": "^1.0.0",
5353
"esbuild": "0.25.4",
5454
"execa": "^8.0.0",
55-
"fast-glob": "^3.3.2",
5655
"filter-obj": "^6.0.0",
5756
"find-up": "^7.0.0",
5857
"glob": "^8.0.3",
@@ -69,6 +68,7 @@
6968
"require-package-name": "^2.0.1",
7069
"resolve": "^2.0.0-next.1",
7170
"semver": "^7.3.8",
71+
"tinyglobby": "^0.2.13",
7272
"tmp-promise": "^3.0.2",
7373
"toml": "^3.0.0",
7474
"unixify": "^1.0.0",

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { normalize, resolve } from 'path'
22

3-
import fastGlob from 'fast-glob'
3+
import { glob } from 'tinyglobby'
44

55
import { minimatch } from '../../../utils/matching.js'
66

@@ -48,7 +48,7 @@ export const getPathsOfIncludedFiles = async (
4848
{ include: [], excludePatterns: [] },
4949
)
5050

51-
const pathGroups = await fastGlob(include, {
51+
const pathGroups = await glob(include, {
5252
absolute: true,
5353
cwd: basePath,
5454
dot: true,
@@ -58,6 +58,7 @@ export const getPathsOfIncludedFiles = async (
5858
// to filter the regular non symlinked directories out mark them with a slash at the end to filter them out.
5959
markDirectories: true,
6060
followSymbolicLinks: false,
61+
expandDirectories: false,
6162
})
6263

6364
const paths = pathGroups.filter((path) => !path.endsWith('/')).map(normalize)

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

Lines changed: 2 additions & 2 deletions
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'
@@ -2852,7 +2852,7 @@ describe('zip-it-and-ship-it', () => {
28522852

28532853
await decompress(files[0].path, unzipPath)
28542854

2855-
const fileNames: string[] = await glob('**', { dot: true, cwd: unzipPath })
2855+
const fileNames: string[] = await glob('**', { dot: true, cwd: unzipPath, expandDirectories: false })
28562856
const duplicates = fileNames.filter((item, index) => fileNames.indexOf(item) !== index)
28572857
expect(duplicates).toHaveLength(0)
28582858
})

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

Lines changed: 2 additions & 2 deletions
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

@@ -32,7 +32,7 @@ test('The telemetry file should be added by default to the function bundle', asy
3232

3333
await decompress(result!.path, unzippedPath)
3434

35-
const files = await glob('**/*', { cwd: unzippedPath })
35+
const files = await glob('**/*', { cwd: unzippedPath, expandDirectories: false })
3636
expect(files.sort()).toEqual([
3737
'___netlify-bootstrap.mjs',
3838
'___netlify-entry-point.mjs',

0 commit comments

Comments
 (0)