fix(schema): ignore pnpm store directory

resolves https://github.com/nuxt/nuxt/issues/22910
This commit is contained in:
Daniel Roe 2023-09-26 01:59:55 +02:00
parent a6f845d1ec
commit 3510cedc3f

View File

@ -351,7 +351,7 @@ export default defineUntypedSchema({
'**/*.stories.{js,cts,mts,ts,jsx,tsx}', // ignore storybook files '**/*.stories.{js,cts,mts,ts,jsx,tsx}', // ignore storybook files
'**/*.{spec,test}.{js,cts,mts,ts,jsx,tsx}', // ignore tests '**/*.{spec,test}.{js,cts,mts,ts,jsx,tsx}', // ignore tests
'**/*.d.{cts,mts,ts}', // ignore type declarations '**/*.d.{cts,mts,ts}', // ignore type declarations
'**/.{vercel,netlify,output,git,cache,data}', '**/.{pnpm-store,vercel,netlify,output,git,cache,data}',
relative(await get('rootDir'), await get('analyzeDir')), relative(await get('rootDir'), await get('analyzeDir')),
relative(await get('rootDir'), await get('buildDir')), relative(await get('rootDir'), await get('buildDir')),
await get('ignorePrefix') && `**/${await get('ignorePrefix')}*.*` await get('ignorePrefix') && `**/${await get('ignorePrefix')}*.*`