fix(schema): add declarations to ignore list (#8787)

This commit is contained in:
Daniel Roe 2022-11-09 10:01:09 +01:00 committed by GitHub
parent 30d99477ce
commit 4e8f59bf70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View File

@ -338,6 +338,7 @@ export default defineUntypedSchema({
$resolve: async (val, get) => [ $resolve: async (val, get) => [
'**/*.stories.{js,ts,jsx,tsx}', // ignore storybook files '**/*.stories.{js,ts,jsx,tsx}', // ignore storybook files
'**/*.{spec,test}.{js,ts,jsx,tsx}', // ignore tests '**/*.{spec,test}.{js,ts,jsx,tsx}', // ignore tests
'**/*.d.ts', // ignore type declarations
'.output', '.output',
await get('ignorePrefix') && `**/${await get('ignorePrefix')}*.*` await get('ignorePrefix') && `**/${await get('ignorePrefix')}*.*`
].concat(val).filter(Boolean) ].concat(val).filter(Boolean)

2
test/fixtures/basic/plugins/test.d.ts vendored Normal file
View File

@ -0,0 +1,2 @@
interface MyInterface {}
export {}