fix: use package.json script for cleanup-orphans command

Added test:cleanup-orphans script to package.json and updated
workflow to use it, fixing "None of the selected packages has a tsx script" error.
This commit is contained in:
Ajax Davis 2026-01-14 02:18:16 +10:00
parent 8219f0dde5
commit 83e2cededa
2 changed files with 3 additions and 2 deletions

View file

@ -48,7 +48,7 @@ jobs:
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
INTEGRATION_TEST_USER_ID: ${{ secrets.INTEGRATION_TEST_USER_ID }}
run: pnpm --filter=@tpmjs/web tsx src/test/integration/_helpers/cleanup-orphans.ts
run: pnpm --filter=@tpmjs/web test:cleanup-orphans
- name: Wait for API
run: |
@ -124,4 +124,4 @@ jobs:
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
INTEGRATION_TEST_USER_ID: ${{ secrets.INTEGRATION_TEST_USER_ID }}
run: pnpm --filter=@tpmjs/web tsx src/test/integration/_helpers/cleanup-orphans.ts
run: pnpm --filter=@tpmjs/web test:cleanup-orphans