Skip to content

Commit

Permalink
fix(deps): replace fast-glob with tinyglobby
Browse files Browse the repository at this point in the history
  • Loading branch information
serhalp committed Feb 18, 2025
1 parent 80b9666 commit 4e392bf
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion packages/zip-it-and-ship-it/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
"es-module-lexer": "^1.0.0",
"esbuild": "0.19.11",
"execa": "^7.0.0",
"fast-glob": "^3.3.2",
"filter-obj": "^5.0.0",
"find-up": "^6.0.0",
"is-builtin-module": "^3.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,13 @@ export const getPathsOfIncludedFiles = async (
onlyFiles: false,
// get directories as well to get symlinked directories,
// to filter the regular non symlinked directories out mark them with a slash at the end to filter them out.
// TODO(serhalp) If we can find a better way to do this, we can use tinyglobby here and remove fast-glob entirely.
markDirectories: true,
followSymbolicLinks: false,
})

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

// now filter the non symlinked directories out that got marked with a trailing slash
return { excludePatterns, paths }
}
2 changes: 1 addition & 1 deletion packages/zip-it-and-ship-it/tests/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import cpy from 'cpy'
import decompress from 'decompress'
import merge from 'deepmerge'
import { execa, execaNode } from 'execa'
import glob from 'fast-glob'
import isCI from 'is-ci'
import { pathExists } from 'path-exists'
import semver from 'semver'
import { glob } from 'tinyglobby'
import { dir as getTmpDir, tmpName } from 'tmp-promise'
import unixify from 'unixify'
import { afterAll, afterEach, beforeAll, describe, expect, test, vi } from 'vitest'
Expand Down
2 changes: 1 addition & 1 deletion packages/zip-it-and-ship-it/tests/telemetry.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { join } from 'path'

import decompress from 'decompress'
import glob from 'fast-glob'
import { glob } from 'tinyglobby'
import { dir as getTmpDir } from 'tmp-promise'
import { expect, test } from 'vitest'

Expand Down

0 comments on commit 4e392bf

Please sign in to comment.