File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1414 - uses : actions/checkout@master
1515 - uses : actions/setup-node@v4
1616 with :
17- node-version : 18 .x
17+ node-version : 20 .x
1818 cache : yarn
1919 - name : Lint and test
2020 run : |
Original file line number Diff line number Diff line change 11#!/usr/bin/env node
22
33import { writeFileSync } from "node:fs" ;
4- import linguistLanguages from "linguist-languages" ;
4+ import * as linguistLanguages from "linguist-languages" ;
55import { format } from "prettier" ;
66import packageJSON from "../package.json" with { type : "json" } ;
77
@@ -16,8 +16,14 @@ function getSupportLanguages() {
1616 // manually-maintained list. These two had been added manually. So in the
1717 // interest of not breaking anything, we'll add them back in here.
1818 if ( language . name === "XML" ) {
19- language . extensions ?. push ( ".inx" , ".runsettings" ) ;
20- language . extensions ?. sort ( ) ;
19+ let extensions = language . extensions ;
20+ if ( extensions ) {
21+ extensions . push ( ".inx" , ".runsettings" ) ;
22+ config . extensions = extensions
23+ // https://github.com/github-linguist/linguist/pull/1842
24+ . filter ( ( e ) => ! [ ".ts" , ".tsx" ] . includes ( e ) )
25+ . sort ( ) ;
26+ }
2127 }
2228
2329 supportLanguages . push ( {
You can’t perform that action at this time.
0 commit comments