mirror of
https://github.com/svg/svgo.git
synced 2025-07-12 06:41:40 +03:00
chore: improve jsdoc types and match most files (#2108)
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import os from 'os';
|
||||
import fs from 'fs';
|
||||
import fs from 'fs/promises';
|
||||
import path from 'path';
|
||||
import {
|
||||
VERSION,
|
||||
@ -35,7 +35,7 @@ const importConfig = async (configFile) => {
|
||||
*/
|
||||
const isFile = async (file) => {
|
||||
try {
|
||||
const stats = await fs.promises.stat(file);
|
||||
const stats = await fs.stat(file);
|
||||
return stats.isFile();
|
||||
} catch {
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user