Skip to content

Commit

Permalink
fix: update exclude globs
Browse files Browse the repository at this point in the history
  • Loading branch information
kelsos committed Jul 8, 2024
1 parent 73c522c commit 39d78b5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/configs/ignores.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import type { TypedFlatConfigItem } from '../types';
export async function ignores(): Promise<TypedFlatConfigItem[]> {
return [{
ignores: GLOB_EXCLUDE,
name: 'rotki/ignores/glob',
name: 'rotki/ignores',
}];
}
20 changes: 7 additions & 13 deletions src/globs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,27 +63,19 @@ export const GLOB_ALL_SRC = [
GLOB_HTML,
];

export const GLOB_NODE_MODULES = '**/node_modules' as const;

export const GLOB_DIST = '**/dist' as const;

export const GLOB_LIB = '**/lib' as const;
export const GLOB_EXCLUDE = [
'**/node_modules',
'**/dist',
'**/lib',

export const GLOB_LOCKFILE = [
'**/package-lock.json',
'**/yarn.lock',
'**/pnpm-lock.yaml',
'**/bun.lockb',
];

export const GLOB_EXCLUDE = [
GLOB_NODE_MODULES,
GLOB_DIST,
GLOB_LIB,
...GLOB_LOCKFILE,

'**/output',
'**/coverage',
'**/coverage-final.json',
'**/temp',
'**/.temp',
'**/tmp',
Expand All @@ -104,6 +96,8 @@ export const GLOB_EXCLUDE = [
'**/vite.config.*.timestamp-*',
'**/.nyc_output',
'**/.e2e',
'**/*.patch',
'**/*.log',

'**/CHANGELOG*.md',
'**/*.min.*',
Expand Down

0 comments on commit 39d78b5

Please sign in to comment.