File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ COPY rivetkit-typescript/packages/engine-runner-protocol/ rivetkit-typescript/pa
2121
2222# Copy rivetkit dependencies
2323COPY rivetkit-typescript/packages/rivetkit/ rivetkit-typescript/packages/rivetkit/
24+ COPY rivetkit-typescript/packages/rivetkit-wasm/ rivetkit-typescript/packages/rivetkit-wasm/
2425COPY rivetkit-typescript/packages/traces/ rivetkit-typescript/packages/traces/
2526COPY 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
4243ARG FONTAWESOME_PACKAGE_TOKEN=""
4344ENV 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+
4552RUN --mount=type=cache,id=s/47975eb7-74fd-4043-a505-62b995ff5718-pnpm-store,target=/pnpm/store \
4653 pnpm install --frozen-lockfile
4754
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ COPY rivetkit-typescript/packages/engine-runner-protocol/ rivetkit-typescript/pa
2121
2222# Copy rivetkit dependencies
2323COPY rivetkit-typescript/packages/rivetkit/ rivetkit-typescript/packages/rivetkit/
24+ COPY rivetkit-typescript/packages/rivetkit-wasm/ rivetkit-typescript/packages/rivetkit-wasm/
2425COPY rivetkit-typescript/packages/traces/ rivetkit-typescript/packages/traces/
2526COPY 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
4243ARG FONTAWESOME_PACKAGE_TOKEN=""
4344ENV 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+
4552RUN --mount=type=cache,id=s/11ac71ef-9b68-4d4c-bc8a-bc8b45000c14-pnpm-store,target=/pnpm/store \
4653 pnpm install --frozen-lockfile
4754
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ COPY rivetkit-typescript/packages/engine-runner-protocol/ rivetkit-typescript/pa
2424
2525# Copy rivetkit dependencies
2626COPY rivetkit-typescript/packages/rivetkit/ rivetkit-typescript/packages/rivetkit/
27+ COPY rivetkit-typescript/packages/rivetkit-wasm/ rivetkit-typescript/packages/rivetkit-wasm/
2728COPY rivetkit-typescript/packages/traces/ rivetkit-typescript/packages/traces/
2829COPY 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
4445ARG FONTAWESOME_PACKAGE_TOKEN=""
4546ENV 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+
4754RUN --mount=type=cache,id=s/465998c9-9dc0-4af4-ac91-b772d7596d6e-pnpm-store,target=/pnpm/store \
4855 pnpm install --frozen-lockfile
4956
You can’t perform that action at this time.
0 commit comments