Skip to content

Commit

Permalink
chore(deps): replace fast-glob by tinyglobby (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayllyz authored Oct 10, 2024
1 parent b2ac17c commit e461b8f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@
"c12": "^1.11.2",
"cac": "^6.7.14",
"escalade": "^3.2.0",
"fast-glob": "^3.3.2",
"js-yaml": "^4.1.0",
"jsonc-parser": "^3.3.1",
"prompts": "^2.4.2",
"semver": "^7.6.3"
"semver": "^7.6.3",
"tinyglobby": "^0.2.9"
},
"devDependencies": {
"@antfu/eslint-config": "^3.7.3",
Expand Down
22 changes: 11 additions & 11 deletions pnpm-lock.yaml

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

5 changes: 3 additions & 2 deletions src/normalize-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { VersionBumpOptions } from './types/version-bump-options'
import fsSync from 'node:fs'
import fs from 'node:fs/promises'
import process from 'node:process'
import fg from 'fast-glob'
import { glob } from 'tinyglobby'
import yaml from 'js-yaml'
import { isReleaseType } from './release-type'

Expand Down Expand Up @@ -138,11 +138,12 @@ export async function normalizeOptions(raw: VersionBumpOptions): Promise<Normali
: ['package.json', 'package-lock.json', 'jsr.json', 'jsr.jsonc', 'deno.json', 'deno.jsonc']
}

const files = await fg(
const files = await glob(
raw.files,
{
cwd,
onlyFiles: true,
expandDirectories: false,
ignore: [
'**/{.git,node_modules,bower_components,__tests__,fixtures,fixture}/**',
],
Expand Down

0 comments on commit e461b8f

Please sign in to comment.