diff --git a/build-tools/api_check_plugin/entry.js b/build-tools/api_check_plugin/entry.js index ef4efc25a0ece0145b29e8d57df3c6e09b21173c..5d03e2948b8d20ca0315ad87702d0698252c20b8 100644 --- a/build-tools/api_check_plugin/entry.js +++ b/build-tools/api_check_plugin/entry.js @@ -24,12 +24,14 @@ function checkEntry(url) { execSync("cd interface/sdk-js/build-tools/api_check_plugin && npm install"); const { scanEntry } = require(path.resolve(__dirname, "./src/api_check_plugin")); result = scanEntry(url); + const content = fs.readFileSync(path.resolve(__dirname, "./Result.txt"), "utf-8"); + result += `mdFilePath = ${url}, content = ${content}` writeResultFile(result, path.resolve(__dirname, "./Result.txt"), {}); const { removeDir } = require(path.resolve(__dirname, "./src/utils")); removeDir(path.resolve(__dirname, "node_modules")); } catch (error) { // catch error - result = error; + result = 'ERROR'; } } checkEntry(process.argv[2]);