1
0
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:
Seth Falco
2025-04-29 10:35:11 +01:00
committed by GitHub
parent 71a1254895
commit df87725b19
13 changed files with 264 additions and 226 deletions

View File

@ -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;