Skip to content

Commit 28bd726

Browse files
committed
refactor: check first path character without function
1 parent 7ea79c7 commit 28bd726

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/get-entry-points/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ export const getFileType = (
1818
}
1919
};
2020

21-
export const isPath = (filePath: string) => filePath.startsWith('.');
21+
export const isPath = (filePath: string) => filePath[0] === '.';

0 commit comments

Comments
 (0)