@@ -69,7 +69,7 @@ import { readFile } from 'fs/promises';
6969import path from ' node:path' ;
7070
7171const config = JSON .parse (
72- await readFile (path .join (import .meta.dirname, ' config.json' ))
72+ await readFile (path .join (import .meta.dirname, ' config.json' ), ' utf8 ' )
7373);
7474
7575try {
@@ -531,7 +531,7 @@ import { readFile } from 'fs/promises';
531531import path from ' node:path' ;
532532
533533const config = JSON .parse (
534- await readFile (path .join (import .meta.dirname, ' config.json' ))
534+ await readFile (path .join (import .meta.dirname, ' config.json' ), ' utf8 ' )
535535);
536536
537537await importGtfs (config);
@@ -577,7 +577,7 @@ import { readFile } from 'fs/promises';
577577import path from ' node:path' ;
578578
579579const config = JSON .parse (
580- await readFile (path .join (import .meta.dirname, ' config.json' ))
580+ await readFile (path .join (import .meta.dirname, ' config.json' ), ' utf8 ' )
581581);
582582
583583await updateGtfsRealtime (config);
@@ -660,7 +660,7 @@ import { readFile } from 'fs/promises';
660660import path from ' node:path' ;
661661
662662const config = JSON .parse (
663- await readFile (path .join (import .meta.dirname, ' config.json' ))
663+ await readFile (path .join (import .meta.dirname, ' config.json' ), ' utf8 ' )
664664);
665665
666666const db = openDb (config);
@@ -702,7 +702,7 @@ import { readFile } from 'fs/promises';
702702import path from ' node:path' ;
703703
704704const config = JSON .parse (
705- await readFile (path .join (import .meta.dirname, ' config.json' ))
705+ await readFile (path .join (import .meta.dirname, ' config.json' ), ' utf8 ' )
706706);
707707
708708const db = openDb (config);
@@ -724,7 +724,7 @@ import { readFile } from 'fs/promises';
724724import path from ' node:path' ;
725725
726726const config = JSON .parse (
727- await readFile (path .join (import .meta.dirname, ' config.json' ))
727+ await readFile (path .join (import .meta.dirname, ' config.json' ), ' utf8 ' )
728728);
729729
730730const db = openDb (config);
@@ -746,7 +746,7 @@ import { readFile } from 'fs/promises';
746746import path from ' node:path' ;
747747
748748const config = JSON .parse (
749- await readFile (path .join (import .meta.dirname, ' config.json' ))
749+ await readFile (path .join (import .meta.dirname, ' config.json' ), ' utf8 ' )
750750);
751751const db = openDb (config);
752752const stops = getStops (
0 commit comments