From 0c0d726b2859fa6447fd395ba51ee6542dde03aa Mon Sep 17 00:00:00 2001 From: Bilal Godil Date: Wed, 15 Apr 2026 13:50:55 -0700 Subject: [PATCH] build stack-cli's workspace deps in emulator CI Switch the CLI build step from `pnpm --filter @stackframe/stack-cli run build` to `turbo run build --filter=@stackframe/stack-cli...` so that stack-cli's workspace dependencies (@stackframe/js and @stackframe/stack-shared) also get compiled to their dist/ outputs. Without them, `node dist/index.js` fails with ERR_MODULE_NOT_FOUND at import time. --- .github/workflows/qemu-emulator-build.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/qemu-emulator-build.yaml b/.github/workflows/qemu-emulator-build.yaml index 9d1078f0c..3ed56b147 100644 --- a/.github/workflows/qemu-emulator-build.yaml +++ b/.github/workflows/qemu-emulator-build.yaml @@ -138,8 +138,11 @@ jobs: - name: Build stack-cli (for emulator CLI) if: matrix.arch == 'amd64' run: | - pnpm install --frozen-lockfile --filter @stackframe/stack-cli... - pnpm --filter @stackframe/stack-cli run build + pnpm install --frozen-lockfile --filter '@stackframe/stack-cli...' + # Turbo's trailing `...` filter builds stack-cli AND its workspace + # deps (@stackframe/js, @stackframe/stack-shared, etc.) — stack-cli + # imports them at runtime from their dist/ outputs. + pnpm exec turbo run build --filter='@stackframe/stack-cli...' - name: Start emulator and verify if: matrix.arch == 'amd64' @@ -249,8 +252,11 @@ jobs: - name: Install stack-cli deps + build run: | - pnpm install --frozen-lockfile --filter @stackframe/stack-cli... - pnpm --filter @stackframe/stack-cli run build + pnpm install --frozen-lockfile --filter '@stackframe/stack-cli...' + # Turbo's trailing `...` filter builds stack-cli AND its workspace + # deps (@stackframe/js, @stackframe/stack-shared, etc.) — stack-cli + # imports them at runtime from their dist/ outputs. + pnpm exec turbo run build --filter='@stackframe/stack-cli...' - name: Download built image uses: actions/download-artifact@v4