Skip to content

Commit

Permalink
Merge pull request #1240 from IBMa/will-equal-access-1149
Browse files Browse the repository at this point in the history
fix (Checker packages): Fix error and crash due to custom cacheFolder in achecker.yml
  • Loading branch information
ErickRenteria authored Jan 27, 2023
2 parents 0a0b2b3 + 5472158 commit e735264
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion accessibility-checker/src-ts/lib/ACEngineManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,12 @@ try {
fs.mkdirSync(engineDir, { recursive: true });
}
await new Promise<void>((resolve, reject) => {
const nodePath = path.join(engineDir, "ace-node")
let nodePath = path.join(engineDir, "ace-node")
fs.writeFile(nodePath+".js", data, function (err) {
try {
if(nodePath.charAt(0) !== '/'){
nodePath = "../../" + nodePath;
}
err && console.log(err);
var ace_ibma = require(nodePath);
checker = new ace_ibma.Checker();
Expand Down

0 comments on commit e735264

Please sign in to comment.