Skip to content

Commit 3998986

Browse files
committed
fix: add try/catch around client build and inline-builds to yarn
1 parent 5457a4f commit 3998986

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

client/scripts/build.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,12 @@ buildVars.forEach(({ name, defaultValue }) => {
9191
shell.env[name] = shell.env[name] ?? defaultValue;
9292
});
9393

94-
shell.exec(`BUILD_TARGET=browserCheck yarn workspace lowcoder build`, { fatal: true });
95-
shell.exec(`yarn workspace lowcoder build`, { fatal: true });
94+
try {
95+
shell.exec(`BUILD_TARGET=browserCheck yarn workspace lowcoder build`, { fatal: true });
96+
shell.exec(`yarn workspace lowcoder build`, { fatal: true });
97+
} catch(e) {
98+
console.error("Command failed: ", e.message);
99+
}
96100

97101
if (process.env.REACT_APP_BUNDLE_BUILTIN_PLUGIN) {
98102
for (const pluginName of builtinPlugins) {

deploy/docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ RUN apt-get update \
6868
# Copy and build the node-service app
6969
COPY server/node-service/ /lowcoder/node-service/app/
7070
WORKDIR /lowcoder/node-service/app/
71-
RUN yarn --immutable
71+
RUN yarn --immutable --inline-builds
7272
RUN yarn build
7373

7474
# Copy startup script
@@ -118,7 +118,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certifi
118118
# Build client
119119
COPY ./client /lowcoder-client
120120
WORKDIR /lowcoder-client
121-
RUN yarn --immutable
121+
RUN yarn --immutable --inline-builds
122122

123123
ARG REACT_APP_COMMIT_ID=test
124124
ARG REACT_APP_ENV=production

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy