Skip to content

Commit 331cbe7

Browse files
committed
fix(frontend): build ladle correctly
1 parent 3e2bff1 commit 331cbe7

3 files changed

Lines changed: 21 additions & 0 deletions

File tree

frontend/cloud.Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ COPY rivetkit-typescript/packages/engine-runner-protocol/ rivetkit-typescript/pa
2121

2222
# Copy rivetkit dependencies
2323
COPY rivetkit-typescript/packages/rivetkit/ rivetkit-typescript/packages/rivetkit/
24+
COPY rivetkit-typescript/packages/rivetkit-wasm/ rivetkit-typescript/packages/rivetkit-wasm/
2425
COPY rivetkit-typescript/packages/traces/ rivetkit-typescript/packages/traces/
2526
COPY rivetkit-typescript/packages/workflow-engine/ rivetkit-typescript/packages/workflow-engine/
2627

@@ -42,6 +43,12 @@ RUN chmod +x /tmp/fetch-lfs.sh && /tmp/fetch-lfs.sh
4243
ARG FONTAWESOME_PACKAGE_TOKEN=""
4344
ENV FONTAWESOME_PACKAGE_TOKEN=${FONTAWESOME_PACKAGE_TOKEN}
4445

46+
# Skip the wasm-pack build for @rivetkit/rivetkit-wasm. The frontend bundle
47+
# only needs the committed type declarations (index.d.ts) for the rivetkit DTS
48+
# build to resolve `typeof import("@rivetkit/rivetkit-wasm")`; wasm-pack
49+
# requires a Rust toolchain we don't ship in this image.
50+
ENV SKIP_WASM_BUILD=1
51+
4552
RUN --mount=type=cache,id=s/47975eb7-74fd-4043-a505-62b995ff5718-pnpm-store,target=/pnpm/store \
4653
pnpm install --frozen-lockfile
4754

frontend/inspector.Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ COPY rivetkit-typescript/packages/engine-runner-protocol/ rivetkit-typescript/pa
2121

2222
# Copy rivetkit dependencies
2323
COPY rivetkit-typescript/packages/rivetkit/ rivetkit-typescript/packages/rivetkit/
24+
COPY rivetkit-typescript/packages/rivetkit-wasm/ rivetkit-typescript/packages/rivetkit-wasm/
2425
COPY rivetkit-typescript/packages/traces/ rivetkit-typescript/packages/traces/
2526
COPY rivetkit-typescript/packages/workflow-engine/ rivetkit-typescript/packages/workflow-engine/
2627

@@ -42,6 +43,12 @@ RUN chmod +x /tmp/fetch-lfs.sh && /tmp/fetch-lfs.sh
4243
ARG FONTAWESOME_PACKAGE_TOKEN=""
4344
ENV FONTAWESOME_PACKAGE_TOKEN=${FONTAWESOME_PACKAGE_TOKEN}
4445

46+
# Skip the wasm-pack build for @rivetkit/rivetkit-wasm. The frontend bundle
47+
# only needs the committed type declarations (index.d.ts) for the rivetkit DTS
48+
# build to resolve `typeof import("@rivetkit/rivetkit-wasm")`; wasm-pack
49+
# requires a Rust toolchain we don't ship in this image.
50+
ENV SKIP_WASM_BUILD=1
51+
4552
RUN --mount=type=cache,id=s/11ac71ef-9b68-4d4c-bc8a-bc8b45000c14-pnpm-store,target=/pnpm/store \
4653
pnpm install --frozen-lockfile
4754

frontend/ladle.Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ COPY rivetkit-typescript/packages/engine-runner-protocol/ rivetkit-typescript/pa
2424

2525
# Copy rivetkit dependencies
2626
COPY rivetkit-typescript/packages/rivetkit/ rivetkit-typescript/packages/rivetkit/
27+
COPY rivetkit-typescript/packages/rivetkit-wasm/ rivetkit-typescript/packages/rivetkit-wasm/
2728
COPY rivetkit-typescript/packages/traces/ rivetkit-typescript/packages/traces/
2829
COPY rivetkit-typescript/packages/workflow-engine/ rivetkit-typescript/packages/workflow-engine/
2930

@@ -44,6 +45,12 @@ RUN chmod +x /tmp/fetch-lfs.sh && /tmp/fetch-lfs.sh
4445
ARG FONTAWESOME_PACKAGE_TOKEN=""
4546
ENV FONTAWESOME_PACKAGE_TOKEN=${FONTAWESOME_PACKAGE_TOKEN}
4647

48+
# Skip the wasm-pack build for @rivetkit/rivetkit-wasm. The frontend bundle
49+
# only needs the committed type declarations (index.d.ts) for the rivetkit DTS
50+
# build to resolve `typeof import("@rivetkit/rivetkit-wasm")`; wasm-pack
51+
# requires a Rust toolchain we don't ship in this image.
52+
ENV SKIP_WASM_BUILD=1
53+
4754
RUN --mount=type=cache,id=s/465998c9-9dc0-4af4-ac91-b772d7596d6e-pnpm-store,target=/pnpm/store \
4855
pnpm install --frozen-lockfile
4956

0 commit comments

Comments
 (0)