diff options
author | 2025-02-24 20:50:08 +0800 | |
---|---|---|
committer | 2025-02-24 12:50:08 +0000 | |
commit | 2e1321e9d5b27da3e86bc4021e4136661a8055aa (patch) | |
tree | 3b06e3e2d3ac67a06487da4286b1e70045014b07 /packages/integrations/cloudflare/src | |
parent | baf0c405dd9be1a13b1739bee45bb4aa258b3cab (diff) | |
download | astro-2e1321e9d5b27da3e86bc4021e4136661a8055aa.tar.gz astro-2e1321e9d5b27da3e86bc4021e4136661a8055aa.tar.zst astro-2e1321e9d5b27da3e86bc4021e4136661a8055aa.zip |
Replace globby/fast-glob/tiny-glob with tinyglobby (#13299)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: florian-lefebvre <69633530+florian-lefebvre@users.noreply.github.com>
Co-authored-by: ematipico <602478+ematipico@users.noreply.github.com>
Diffstat (limited to 'packages/integrations/cloudflare/src')
-rw-r--r-- | packages/integrations/cloudflare/src/utils/generate-routes-json.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/integrations/cloudflare/src/utils/generate-routes-json.ts b/packages/integrations/cloudflare/src/utils/generate-routes-json.ts index eea7c38e1..f1d9e4384 100644 --- a/packages/integrations/cloudflare/src/utils/generate-routes-json.ts +++ b/packages/integrations/cloudflare/src/utils/generate-routes-json.ts @@ -14,7 +14,7 @@ import { removeLeadingForwardSlash, removeTrailingForwardSlash, } from '@astrojs/internal-helpers/path'; -import glob from 'tiny-glob'; +import { glob } from 'tinyglobby'; // Copied from https://github.com/withastro/astro/blob/3776ecf0aa9e08a992d3ae76e90682fd04093721/packages/astro/src/core/routing/manifest/create.ts#L45-L70 // We're not sure how to improve this regex yet @@ -205,9 +205,8 @@ export async function createRoutesFile( } if (existsSync(fileURLToPath(_config.publicDir))) { - const staticFiles = await glob(`${fileURLToPath(_config.publicDir)}/**/*`, { + const staticFiles = await glob(`**/*`, { cwd: fileURLToPath(_config.publicDir), - filesOnly: true, dot: true, }); for (const staticFile of staticFiles) { |