diff --git a/scripts/build.js b/scripts/build.js index 99ce945eb8..faf61e26c0 100755 --- a/scripts/build.js +++ b/scripts/build.js @@ -23,7 +23,7 @@ function runBuild(entry, outfile) { ) if ( - !fs.existsSync("../pro/src") && + !fs.existsSync(path.join(__dirname, "../packages/pro/src")) && tsconfigPathPluginContent.compilerOptions?.paths ) { // If we don't have pro, we cannot bundle backend-core.