Skip to content

Commit 31fdda5

Browse files
committed
style: format with prettier
1 parent 9eafa5c commit 31fdda5

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

src/constants/codebase-context.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,12 @@ export const EXCLUDED_GLOB_PATTERNS: string[] = EXCLUDED_DIRECTORY_NAMES.map(
5757
* Additional directories skipped only during project discovery (not generated
5858
* code, just not useful roots to recurse into).
5959
*/
60-
export const DISCOVERY_ONLY_IGNORED = ['.hg', '.nuxt', '.svn', '.venv', '.yarn', 'out', 'tmp'] as const;
60+
export const DISCOVERY_ONLY_IGNORED = [
61+
'.hg',
62+
'.nuxt',
63+
'.svn',
64+
'.venv',
65+
'.yarn',
66+
'out',
67+
'tmp'
68+
] as const;

src/utils/project-discovery.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import { promises as fs } from 'fs';
22
import type { Dirent } from 'fs';
33
import path from 'path';
4-
import {
5-
EXCLUDED_DIRECTORY_NAMES,
6-
DISCOVERY_ONLY_IGNORED
7-
} from '../constants/codebase-context.js';
4+
import { EXCLUDED_DIRECTORY_NAMES, DISCOVERY_ONLY_IGNORED } from '../constants/codebase-context.js';
85

96
export type ProjectEvidence =
107
| 'existing_index'
@@ -23,10 +20,7 @@ export interface DiscoverProjectsOptions {
2320

2421
const DEFAULT_MAX_DEPTH = 4;
2522

26-
const IGNORED_DIRECTORY_NAMES = new Set([
27-
...EXCLUDED_DIRECTORY_NAMES,
28-
...DISCOVERY_ONLY_IGNORED
29-
]);
23+
const IGNORED_DIRECTORY_NAMES = new Set([...EXCLUDED_DIRECTORY_NAMES, ...DISCOVERY_ONLY_IGNORED]);
3024

3125
const STRONG_DIRECTORY_MARKERS = new Set(['.codebase-context', '.git']);
3226
const WORKSPACE_MARKERS = new Set(['lerna.json', 'nx.json', 'pnpm-workspace.yaml', 'turbo.json']);

0 commit comments

Comments
 (0)