Fix build script with no pro locally
This commit is contained in:
parent
415c5de467
commit
d66a020b3c
1 changed files with 4 additions and 1 deletions
|
@ -22,7 +22,10 @@ function runBuild(entry, outfile) {
|
||||||
fs.readFileSync(tsconfig, "utf-8")
|
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.
|
// If we don't have pro, we cannot bundle backend-core.
|
||||||
// Otherwise, the main context will not be shared between libraries
|
// Otherwise, the main context will not be shared between libraries
|
||||||
delete tsconfigPathPluginContent.compilerOptions.paths[
|
delete tsconfigPathPluginContent.compilerOptions.paths[
|
||||||
|
|
Loading…
Reference in a new issue