Skip to content

Commit 483b4d1

Browse files
committed
fix(core): check again
1 parent 2c56788 commit 483b4d1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/core/src/config/load.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ async function loadIgnoreFile(
1717
configPath: string | undefined,
1818
resolver: BaseResolver
1919
): Promise<Record<string, Record<string, Set<string>>> | undefined> {
20-
if (!configPath) return undefined;
21-
22-
const configDir = getDir(configPath);
20+
const configDir = configPath ? getDir(configPath) : process.cwd();
2321
const ignorePath = resolvePath(configDir, IGNORE_FILE);
2422

2523
if (fs?.existsSync && !isAbsoluteUrlOrFileUrl(ignorePath) && !fs.existsSync(ignorePath)) {

0 commit comments

Comments
 (0)