Make sure configs are read sync. (#3882)
* Make sure configs are read sync. Fix for https://github.com/sitespeedio/sitespeed.io/issues/3881 * lint
This commit is contained in:
parent
160c045cfd
commit
d60d55975a
|
|
@ -10,7 +10,6 @@ import reduce from 'lodash.reduce';
|
|||
import set from 'lodash.set';
|
||||
import get from 'lodash.get';
|
||||
import { findUpSync } from 'find-up';
|
||||
import { readFile } from 'node:fs/promises';
|
||||
|
||||
import { getURLs, getAliases } from './util.js';
|
||||
import { toArray } from '../support/util.js';
|
||||
|
|
@ -2057,7 +2056,7 @@ export async function parseCommandLine() {
|
|||
|
||||
if (argv.config) {
|
||||
const config = JSON.parse(
|
||||
await readFile(
|
||||
await readFileSync(
|
||||
new URL(resolve(process.cwd(), argv.config), import.meta.url)
|
||||
)
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue