Repository navigation
ci: build diagnostics before api in the back-merge workflow - #3457
Conversation
core generate loads the compiled api package, which now imports @faststore/diagnostics at runtime. Without this dist, the automated main → dev back-merge fails with MODULE_NOT_FOUND.
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (1)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
@faststore/api
@faststore/cli
@faststore/components
@faststore/core
@faststore/diagnostics
@faststore/lighthouse
@faststore/sdk
@faststore/ui
commit: |
|

0 New Issues
0 Fixed Issues
0 Accepted Issues
No data about coverage (32.50% Estimated after merge)
What's the purpose of this pull request?
The automated Back-merge main to dev job failed after graduating 4.6.0.
core generateshells out to the CLI, which loads compiled@faststore/api. Since #3389 that package imports@faststore/diagnosticsat runtime, and the workflow never builtdiagnostics, so generate died withMODULE_NOT_FOUNDondist/es/index.mjs.This run does not need to be re-executed — the 4.6.0 sync is already in #3456. The YAML change is for the next CD on
main(workflow_runreads this file fromdev, the default branch).How it works?
Build
@faststore/diagnosticsbefore@faststore/apiin the regenerate step, matching the existing explicit chain (api→cli→core generate).How to test it?
pnpm --filter @faststore/diagnostics buildruns beforeapibuild in.github/workflows/back-merge.ymlmainshould open the back-merge PR instead of failing at codegenReferences
Checklist
PR Title and Commit Messages
Made with Cursor