zarro 1.190.1 → 1.190.2
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/index.js +4 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -326,6 +326,8 @@ function looksLikeAnonymousTaskMessage(str) {
|
|
|
326
326
|
return anonymousPos > -1;
|
|
327
327
|
}
|
|
328
328
|
|
|
329
|
+
const generatedFileMatcher = /\.generated\.js$/;
|
|
330
|
+
|
|
329
331
|
async function removeOrphanedGeneratedFilesUnder(dir) {
|
|
330
332
|
const allFiles = await ls(dir, {
|
|
331
333
|
recurse: true,
|
|
@@ -335,8 +337,8 @@ async function removeOrphanedGeneratedFilesUnder(dir) {
|
|
|
335
337
|
const lookup = new Set(allFiles);
|
|
336
338
|
for (let i = 0; i < allFiles.length; i++) {
|
|
337
339
|
const current = allFiles[i];
|
|
338
|
-
if (current.match(
|
|
339
|
-
const seek = current.replace(
|
|
340
|
+
if (current.match(generatedFileMatcher)) {
|
|
341
|
+
const seek = current.replace(generatedFileMatcher, ".ts");
|
|
340
342
|
if (!lookup.has(seek)) {
|
|
341
343
|
await rm(current);
|
|
342
344
|
}
|