From 503921ad838772e94ca5941f1351a2d480a89da7 Mon Sep 17 00:00:00 2001 From: Akbar Yahya <11765082+akbaryahya@users.noreply.github.com> Date: Sat, 12 Nov 2022 17:23:17 +0800 Subject: [PATCH] add info del and info if found unk var --- op.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/op.js b/op.js index 651e7226..69610ebf 100644 --- a/op.js +++ b/op.js @@ -451,6 +451,10 @@ function clean_proto_gen() { const read = fs.readFileSync(file); var rd = read.toString(); + if (file.match("Unk")) { + console.log("unk: " + file); + } + // find import while ((m = regex.exec(rd)) !== null) { // This is necessary to avoid infinite loops with zero-width matches @@ -465,6 +469,9 @@ function clean_proto_gen() { if (found_rt) { //console.log(`Skip ${match}`); } else { + if (match.match("Unk") || file.match("Unk")) { + console.log(file + " require " + match); + } var subdata = new Object(); subdata["name"] = match; file_toaddmore.push(subdata); @@ -505,6 +512,7 @@ function clean_proto_gen() { if (todoremove) { found_needclean++; + console.log("Remove file: "+file); try { fs.unlinkSync(file); //file removed