diff --git a/build-tools/api_check_plugin/entry.js b/build-tools/api_check_plugin/entry.js index 8c81ad7864d7d0494f70933931c40f8097a68999..ef4efc25a0ece0145b29e8d57df3c6e09b21173c 100644 --- a/build-tools/api_check_plugin/entry.js +++ b/build-tools/api_check_plugin/entry.js @@ -18,6 +18,7 @@ const { writeResultFile } = require('./src/utils'); function checkEntry(url) { let result = "API CHECK FAILED!"; + __dirname = "interface/sdk-js/build-tools/api_check_plugin"; try { const execSync = require("child_process").execSync; execSync("cd interface/sdk-js/build-tools/api_check_plugin && npm install"); diff --git a/build-tools/api_check_plugin/src/api_check_plugin.js b/build-tools/api_check_plugin/src/api_check_plugin.js index c23cdb61055bcb772ef1d33616c528770239abc3..43420ddf3770ca1f6b9fdee19d477ce568a0d968 100644 --- a/build-tools/api_check_plugin/src/api_check_plugin.js +++ b/build-tools/api_check_plugin/src/api_check_plugin.js @@ -73,7 +73,7 @@ function checkAllNode(node, sourcefile, fileName) { // check apiNote spelling checkSpelling(node, sourcefile, fileName); // check syscap - checkSyscap(node, sourcefile, fileName); + // checkSyscap(node, sourcefile, fileName); // check deprecated checkDeprecated(node, sourcefile, fileName); // check permission