Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
mingxuanzhangsfdx committed Oct 2, 2024
1 parent cf11bf5 commit cb60de0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit cb60de0

Please sign in to comment.