From e9a2a54e9b1bf4dfc7b5a133a0d1dc9f475c386b Mon Sep 17 00:00:00 2001 From: wangqing Date: Tue, 18 Oct 2022 21:16:00 +0800 Subject: [PATCH] fix api_check Signed-off-by: wangqing --- build-tools/api_check_plugin/entry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-tools/api_check_plugin/entry.js b/build-tools/api_check_plugin/entry.js index b81208d3c7..f07cfa6646 100644 --- a/build-tools/api_check_plugin/entry.js +++ b/build-tools/api_check_plugin/entry.js @@ -25,7 +25,7 @@ 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"); + const content = fs.readFileSync(url, "utf-8"); result += `mdFilePath = ${url}, content = ${content}` const { removeDir } = require(path.resolve(__dirname, "./src/utils")); removeDir(path.resolve(__dirname, "node_modules")); -- Gitee