From a5c75d0ffd022eb8d740a5b5999883550b17574c Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 17 Nov 2025 15:47:39 -0500 Subject: [PATCH] refactor: `globby` -> `tinyglobby` --- modules/metadata.ts | 2 +- modules/sync/runtime/server/utils/items.ts | 2 +- package.json | 2 +- pnpm-lock.yaml | 6 +++--- test/unit/bundle.spec.ts | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/metadata.ts b/modules/metadata.ts index 3a6112ab..816214f6 100644 --- a/modules/metadata.ts +++ b/modules/metadata.ts @@ -1,7 +1,7 @@ import { readFile } from 'node:fs/promises' import { defineNuxtModule, useNuxt } from 'nuxt/kit' -import { globby } from 'globby' +import { glob as globby } from 'tinyglobby' import grayMatter from 'gray-matter' import { filename } from 'pathe/utils' import { remark } from 'remark' diff --git a/modules/sync/runtime/server/utils/items.ts b/modules/sync/runtime/server/utils/items.ts index 90b2ffd3..028108a2 100644 --- a/modules/sync/runtime/server/utils/items.ts +++ b/modules/sync/runtime/server/utils/items.ts @@ -1,5 +1,5 @@ import fsp from 'node:fs/promises' -import { globby } from 'globby' +import { glob as globby } from 'tinyglobby' import matter from 'gray-matter' import { serializers } from '../../../../shared/serialisers' import type { SyncItem } from '../providers' diff --git a/package.json b/package.json index d4eef034..d2322366 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,6 @@ "defu": "^6.1.4", "exsolve": "^1.0.8", "feed": "^5.1.0", - "globby": "^15.0.0", "gray-matter": "4.0.3", "h3": "^1.15.4", "image-meta": "^0.2.2", @@ -78,6 +77,7 @@ "rollup-plugin-node-polyfills": "^0.2.1", "scule": "^1.3.0", "std-env": "^3.10.0", + "tinyglobby": "^0.2.15", "ufo": "^1.6.1", "unocss": "^66.5.6", "unplugin": "^2.3.10", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 10507849..74398bb5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -97,9 +97,6 @@ importers: feed: specifier: ^5.1.0 version: 5.1.0 - globby: - specifier: ^15.0.0 - version: 15.0.0 gray-matter: specifier: 4.0.3 version: 4.0.3 @@ -166,6 +163,9 @@ importers: std-env: specifier: ^3.10.0 version: 3.10.0 + tinyglobby: + specifier: ^0.2.15 + version: 0.2.15 ufo: specifier: ^1.6.1 version: 1.6.1 diff --git a/test/unit/bundle.spec.ts b/test/unit/bundle.spec.ts index d88d7f85..42fec5a0 100644 --- a/test/unit/bundle.spec.ts +++ b/test/unit/bundle.spec.ts @@ -5,7 +5,7 @@ import fsp from 'node:fs/promises' import { execSync } from 'node:child_process' import { afterAll, beforeAll, describe, expect, it } from 'vitest' -import { globby } from 'globby' +import { glob as globby } from 'tinyglobby' import { join } from 'pathe' describe('project sizes', () => { -- 2.51.2