Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3998986

Browse files
committed
fix: add try/catch around client build and inline-builds to yarn
1 parent5457a4f commit3998986

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(constpluginNameofbuiltinPlugins){

‎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)

[8]ページ先頭

©2009-2025 Movatter.jp