diff options
author | 2024-02-02 15:43:30 -0500 | |
---|---|---|
committer | 2024-02-02 15:43:30 -0500 | |
commit | bc1742df9423ba66e33dcbf65fbebf67a236175d (patch) | |
tree | 95adc276e6fefe7731feb297ba874fe12475b577 | |
parent | 6c894af5ab79f290f4ff7feb68617a66e91febc1 (diff) | |
download | astro-bc1742df9423ba66e33dcbf65fbebf67a236175d.tar.gz astro-bc1742df9423ba66e33dcbf65fbebf67a236175d.tar.zst astro-bc1742df9423ba66e33dcbf65fbebf67a236175d.zip |
Revert "Provide better ignores for Vercel's file tracer (#9885)" (#9955)
* Revert "Provide better ignores for Vercel's file tracer (#9885)"
This reverts commit 49e0c24d7f90d00e986533fcf546665967540ce7.
* Changeset
-rw-r--r-- | .changeset/gold-ways-attend.md | 5 | ||||
-rw-r--r-- | packages/integrations/vercel/package.json | 1 | ||||
-rw-r--r-- | packages/integrations/vercel/src/lib/nft.ts | 17 | ||||
-rw-r--r-- | pnpm-lock.yaml | 3 |
4 files changed, 6 insertions, 20 deletions
diff --git a/.changeset/gold-ways-attend.md b/.changeset/gold-ways-attend.md new file mode 100644 index 000000000..d5b367083 --- /dev/null +++ b/.changeset/gold-ways-attend.md @@ -0,0 +1,5 @@ +--- +"@astrojs/vercel": patch +--- + +Fix regression with bundling of @libsql/client diff --git a/packages/integrations/vercel/package.json b/packages/integrations/vercel/package.json index c42cd3173..3e460375e 100644 --- a/packages/integrations/vercel/package.json +++ b/packages/integrations/vercel/package.json @@ -55,7 +55,6 @@ "@vercel/nft": "^0.24.3", "esbuild": "^0.19.6", "fast-glob": "^3.3.2", - "minimatch": "^9.0.3", "set-cookie-parser": "^2.6.0", "web-vitals": "^3.4.0" }, diff --git a/packages/integrations/vercel/src/lib/nft.ts b/packages/integrations/vercel/src/lib/nft.ts index f4ffdd2e6..585a45e99 100644 --- a/packages/integrations/vercel/src/lib/nft.ts +++ b/packages/integrations/vercel/src/lib/nft.ts @@ -2,14 +2,6 @@ import type { AstroIntegrationLogger } from 'astro'; import { relative, relative as relativePath } from 'node:path'; import { fileURLToPath } from 'node:url'; import { copyFilesToFunction } from './fs.js'; -import { Minimatch } from 'minimatch'; - -const matchers = [ - // Never venture into OS folders - '/dev/**', - // libsql contains many native deps that are false-positives. - '**/@libsql/client/**/*', -].map((pattern) => new Minimatch(pattern, { dot: true })); export async function copyDependenciesToFunction( { @@ -46,14 +38,7 @@ export async function copyDependenciesToFunction( base: fileURLToPath(base), // If you have a route of /dev this appears in source and NFT will try to // scan your local /dev :8 - ignore(path) { - for (const minimatch of matchers) { - if (minimatch.match(path)) { - return true; - } - } - return false; - }, + ignore: ['/dev/**'], cache, }); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6139f400c..ef04d4425 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4708,9 +4708,6 @@ importers: fast-glob: specifier: ^3.3.2 version: 3.3.2 - minimatch: - specifier: ^9.0.3 - version: 9.0.3 set-cookie-parser: specifier: ^2.6.0 version: 2.6.0 |