ts-purify
Advanced tools
Comparing version 3.0.3 to 3.0.4
@@ -15,3 +15,6 @@ "use strict"; | ||
const files = fs_1.readdirSync(dir); | ||
files.forEach((file) => { | ||
for (const file of files) { | ||
if (file === 'node_modules') { | ||
continue; | ||
} | ||
const fullPath = path_1.join(dir, file); | ||
@@ -26,3 +29,3 @@ if (fs_1.statSync(fullPath).isDirectory()) { | ||
} | ||
}); | ||
} | ||
}; | ||
@@ -66,3 +69,3 @@ async function cleanAllFiles(srcDir, destDir, options = {}) { | ||
// don't map/await these, just log on failure | ||
toDelete.forEach(async (file) => { | ||
for (const file of toDelete) { | ||
if (fs_1.existsSync(file) && | ||
@@ -79,3 +82,3 @@ !(options.ignorePattern && minimatch_1.default(file, options.ignorePattern))) { | ||
} | ||
}); | ||
} | ||
}, { watchProject: options.watchProject }); | ||
@@ -82,0 +85,0 @@ } |
{ | ||
"name": "ts-purify", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"description": "ensure compiled typescript files are removed when the corresponding source files are", | ||
@@ -5,0 +5,0 @@ "author": "insidewhy <github@chilon.net>", |
@@ -15,3 +15,7 @@ import cousinHarris from 'cousin-harris' | ||
const files = readdirSync(dir) | ||
files.forEach((file) => { | ||
for (const file of files) { | ||
if (file === 'node_modules') { | ||
continue | ||
} | ||
const fullPath = join(dir, file) | ||
@@ -25,3 +29,3 @@ if (statSync(fullPath).isDirectory()) { | ||
} | ||
}) | ||
} | ||
} | ||
@@ -95,3 +99,3 @@ | ||
// don't map/await these, just log on failure | ||
toDelete.forEach(async (file) => { | ||
for (const file of toDelete) { | ||
if ( | ||
@@ -109,3 +113,3 @@ existsSync(file) && | ||
} | ||
}) | ||
} | ||
}, | ||
@@ -112,0 +116,0 @@ { watchProject: options.watchProject }, |
Sorry, the diff of this file is not supported yet
20341
314