Skip to content

chore: replace glob with tinyglobby#12705

Open
roli-lpci wants to merge 2 commits intocloudflare:mainfrom
roli-lpci:chore/replace-glob-with-tinyglobby
Open

chore: replace glob with tinyglobby#12705
roli-lpci wants to merge 2 commits intocloudflare:mainfrom
roli-lpci:chore/replace-glob-with-tinyglobby

Conversation

@roli-lpci
Copy link
Contributor

@roli-lpci roli-lpci commented Feb 27, 2026

Summary

Replace the glob package with tinyglobby across tools, create-cloudflare, and pages-shared. This aligns the rest of the monorepo with vite-plugin-cloudflare, which already uses tinyglobby.

Changes

  • tools/e2e/runIndividualE2EFiles.ts — replace globIterateSync from glob with globSync from tinyglobby
  • tools/deployments/validate-package-dependencies.ts — swap glob import to tinyglobby
  • tools/deployments/validate-private-packages.ts — swap glob import to tinyglobby
  • packages/create-cloudflare/scripts/build.ts — replace glob.sync() with globSync from tinyglobby
  • packages/create-cloudflare/package.json — replace glob@10 with tinyglobby@0.2
  • packages/pages-shared/package.json — remove unused glob devDependency
  • tools/package.json — replace glob@11 with tinyglobby@0.2

Why tinyglobby

  • 2 dependencies vs glob's 6+ (and globby's 17+)
  • Already used in vite-plugin-cloudflare — this PR standardizes the monorepo
  • Returns POSIX paths by default — no need for the posix: true option
  • Recommended by the e18e community as the glob replacement

Testing

  • pnpm check:type -F @cloudflare/tools — pass
  • pnpm check:type -F create-cloudflare — pass
  • pnpm check:type -F @cloudflare/pages-shared — pass
  • pnpm check:lint -F @cloudflare/tools — pass (0 warnings)
  • pnpm check:lint -F create-cloudflare — pass (0 warnings)
  • pnpm check:lint -F @cloudflare/pages-shared — pass (0 warnings)
  • pnpm test:ci -F @cloudflare/tools — 75 tests passed
  • pnpm test:ci -F create-cloudflare — 219 tests passed
  • pnpm test:ci -F @cloudflare/pages-shared — 46 tests passed

Addresses #11854


Open with Devin

@roli-lpci roli-lpci requested a review from a team as a code owner February 27, 2026 19:37
@changeset-bot
Copy link

changeset-bot bot commented Feb 27, 2026

🦋 Changeset detected

Latest commit: 6c97c1c

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 27, 2026

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@12705

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@12705

miniflare

npm i https://pkg.pr.new/miniflare@12705

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@12705

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@12705

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@12705

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@12705

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@12705

wrangler

npm i https://pkg.pr.new/wrangler@12705

commit: 356dd1e

Copy link
Contributor

@emily-shen emily-shen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since this is used across a few packages, should we set the version in pnpm catalog?

roli-lpci and others added 2 commits March 3, 2026 10:16
Replace the `glob` package with the lighter `tinyglobby` across
tools, create-cloudflare, and pages-shared packages. This aligns
the rest of the monorepo with vite-plugin-cloudflare, which already
uses tinyglobby.

- tools: replace glob@11 with tinyglobby in e2e runner and
  deployment validation scripts
- create-cloudflare: replace glob@10 with tinyglobby in build script
- pages-shared: remove unused glob devDependency

tinyglobby has fewer dependencies (2 vs 17+ for globby/fast-glob)
and returns POSIX paths by default.

Addresses cloudflare#11854

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@roli-lpci roli-lpci force-pushed the chore/replace-glob-with-tinyglobby branch from 24991c6 to 6c97c1c Compare March 3, 2026 18:26
@workers-devprod
Copy link
Contributor

Codeowners approval required for this PR:

  • @cloudflare/wrangler
Show detailed file reviewers
  • packages/create-cloudflare/package.json: [@cloudflare/wrangler]
  • packages/create-cloudflare/scripts/build.ts: [@cloudflare/wrangler]
  • packages/pages-shared/package.json: [@cloudflare/wrangler]
  • packages/vite-plugin-cloudflare/package.json: [@cloudflare/wrangler]
  • pnpm-lock.yaml: [@cloudflare/wrangler]
  • pnpm-workspace.yaml: [@cloudflare/wrangler]
  • tools/deployments/validate-package-dependencies.ts: [@cloudflare/wrangler]
  • tools/deployments/validate-private-packages.ts: [@cloudflare/wrangler]
  • tools/e2e/runIndividualE2EFiles.ts: [@cloudflare/wrangler]
  • tools/package.json: [@cloudflare/wrangler]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Untriaged

Development

Successfully merging this pull request may close these issues.

3 participants