Skip to content

Commit c70587d

Browse files
committed
fix: don't index js source maps or yarn.lock
Add js.map, yarn.lock to the list of binary file extensions.
1 parent 112ba46 commit c70587d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/cli/src/fulltext/FileIndex.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ const BINARY_FILE_EXTENSIONS: string[] = [
194194
'jar',
195195
'jpeg',
196196
'jpg',
197+
'js.map',
197198
'min.js',
198199
'min.css',
199200
'mkv',
@@ -229,6 +230,7 @@ const BINARY_FILE_EXTENSIONS: string[] = [
229230
'xls',
230231
'xlsx',
231232
'xz',
233+
'yarn.lock',
232234
'zip',
233235
].map((ext) => '.' + ext);
234236

0 commit comments

Comments
 (0)