File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ const JS_EXTENSIONS: string[] = [
20
20
'js' ,
21
21
'mjs' ,
22
22
'jsx' ,
23
- '(?<!d .)ts' , // ignore d.ts,
24
- '(?<!d .)mts' , // ditto
25
- '(?<!d .)cts' , // ditto
23
+ '(?<!\\.d\\ .)ts' , // ignore d.ts,
24
+ '(?<!\\.d\\ .)mts' , // ditto
25
+ '(?<!\\.d\\ .)cts' , // ditto
26
26
'tsx' ,
27
27
'cjs' ,
28
28
'cjsx' ,
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ const jsTestStrings = [
9
9
{ str : 'index.js' , expected : true } ,
10
10
{ str : './index.ts' , expected : true } ,
11
11
{ str : './index.d.ts' , expected : false } ,
12
+ { str : './spread.ts' , expected : true } ,
13
+ { str : './index.d.jts' , expected : false } ,
12
14
{ str : '/Users/path/index.ts' , expected : true } ,
13
15
{ str : '/Users/path/index.d.ts' , expected : false } ,
14
16
{ str : '/Users/path/index.d.mts' , expected : false } ,
You can’t perform that action at this time.
0 commit comments