auto-image-converter 1.0.13 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/converter.js +3 -3
- package/package.json +1 -1
package/lib/converter.js
CHANGED
|
@@ -13,12 +13,12 @@ export async function convertImages({
|
|
|
13
13
|
removeOriginal,
|
|
14
14
|
}) {
|
|
15
15
|
const pattern = recursive
|
|
16
|
-
? path.join(dir, "**", "*.{
|
|
17
|
-
: path.join(dir, "*.{
|
|
16
|
+
? path.join(dir, "**", "*.{png,jpg,jpeg}")
|
|
17
|
+
: path.join(dir, "*.{png,jpg,jpeg}");
|
|
18
18
|
console.log("Ищу файлы по пути:", pattern);
|
|
19
19
|
const files = await fg(pattern, { caseSensitiveMatch: false });
|
|
20
20
|
console.log("Текущая директория:", process.cwd());
|
|
21
|
-
console.log(
|
|
21
|
+
console.log(`нашел файлы, ${files}, количество, ${files.length}`);
|
|
22
22
|
|
|
23
23
|
for (const file of files) {
|
|
24
24
|
const ext = path.extname(file);
|