mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 20:01:09 +02:00
fix(ci): resolve turbo recursive build loop and filter issues
**Problem:** - CI build was failing with "Cannot find module manifest-full.js" - Root cause: Infinite recursive turbo build loop - chat/package.json had "build": "turbo run build" script - When CI called `pnpm run build --filter=chat...`, it triggered recursion: - CI → turbo → chat:build → turbo → chat:build → turbo (infinite) - Additionally, `--filter=manacore...` failed with "No package found" **Solution:** 1. Removed "build" script from apps/chat/package.json to prevent recursion 2. Changed CI filters from `--filter=PROJECT...` to `--filter='./apps/PROJECT/**'` - Directory-based filters work regardless of package.json name - Prevents recursive turbo calls from wrapper packages 3. Applied fix to all CI jobs: build, lint, type-check, test **Impact:** - SvelteKit builds now complete successfully - manifest-full.js is generated correctly - No more infinite turbo loops - Builds work for both chat and manacore projects 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
e6f7a4ae4a
commit
0cea08f3bd
3 changed files with 1276 additions and 5 deletions
File diff suppressed because it is too large
Load diff
8
.github/workflows/ci-pull-request.yml
vendored
8
.github/workflows/ci-pull-request.yml
vendored
|
|
@ -73,7 +73,7 @@ jobs:
|
|||
run: pnpm run format:check
|
||||
|
||||
- name: Run lint
|
||||
run: pnpm run lint --filter=chat... --filter=manacore...
|
||||
run: pnpm run lint --filter='./apps/chat/**' --filter='./apps/manacore/**'
|
||||
continue-on-error: true
|
||||
|
||||
# Type checking
|
||||
|
|
@ -104,7 +104,7 @@ jobs:
|
|||
run: pnpm run build:packages
|
||||
|
||||
- name: Run type check
|
||||
run: pnpm run type-check --filter=chat... --filter=manacore...
|
||||
run: pnpm run type-check --filter='./apps/chat/**' --filter='./apps/manacore/**'
|
||||
continue-on-error: true
|
||||
|
||||
# Build all affected projects
|
||||
|
|
@ -143,7 +143,7 @@ jobs:
|
|||
if [ "${{ matrix.project }}" == "packages" ]; then
|
||||
pnpm run build --filter=@manacore/*
|
||||
else
|
||||
pnpm run build --filter=${{ matrix.project }}...
|
||||
pnpm run build --filter='./apps/${{ matrix.project }}/**'
|
||||
fi
|
||||
continue-on-error: true
|
||||
|
||||
|
|
@ -196,7 +196,7 @@ jobs:
|
|||
if [ "${{ matrix.project }}" == "packages" ]; then
|
||||
pnpm run test --filter=@manacore/* || echo "No tests found for packages"
|
||||
else
|
||||
pnpm run test --filter=${{ matrix.project }}... || echo "No tests found for ${{ matrix.project }}"
|
||||
pnpm run test --filter='./apps/${{ matrix.project }}/**' || echo "No tests found for ${{ matrix.project }}"
|
||||
fi
|
||||
continue-on-error: true
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
"description": "Chat project - AI chat application with mobile, web and landing",
|
||||
"scripts": {
|
||||
"dev": "turbo run dev",
|
||||
"build": "turbo run build",
|
||||
"lint": "turbo run lint",
|
||||
"type-check": "turbo run type-check"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue