1
0
Fork 0
mirror of synced 2024-06-29 19:41:03 +12:00

Fix build script with no pro locally

This commit is contained in:
Adria Navarro 2023-08-10 11:48:18 +03:00
parent 415c5de467
commit d66a020b3c

View file

@ -22,7 +22,10 @@ function runBuild(entry, outfile) {
fs.readFileSync(tsconfig, "utf-8")
)
if (!fs.existsSync("../pro/src")) {
if (
!fs.existsSync("../pro/src") &&
tsconfigPathPluginContent.compilerOptions?.paths
) {
// If we don't have pro, we cannot bundle backend-core.
// Otherwise, the main context will not be shared between libraries
delete tsconfigPathPluginContent.compilerOptions.paths[