From cb60de0e3ab5b8a47d6843780318e5d3c0049fe7 Mon Sep 17 00:00:00 2001 From: mingxuanzhang Date: Wed, 2 Oct 2024 15:36:12 -0700 Subject: [PATCH] chore: update --- scripts/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.js b/scripts/build.js index 7f9bee514..31262570d 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -49,7 +49,7 @@ const sharedConfig = { const searchString = /\$\{process\.cwd\(\)\}\$\{require\("path"\)\.sep\}tmp-lib/g; const replacementString = `\${__dirname}\${require("path").sep}`; - if (!bundledEntryPoint.includes(searchString)) { + if (!searchString.test(bundledEntryPoint)) { console.error('Error: the reference to be modified is not detected - Please reach out to IDEx Foundations team.'); process.exit(1); // Exit with an error code }