From 83e2cededa25a2f48f2d245eef13959b35570feb Mon Sep 17 00:00:00 2001 From: Ajax Davis Date: Wed, 14 Jan 2026 02:18:16 +1000 Subject: [PATCH] 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. --- .github/workflows/integration-tests.yml | 4 ++-- apps/web/package.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 1a54b91..b62c4cc 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -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 diff --git a/apps/web/package.json b/apps/web/package.json index 454a761..c7b831c 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -15,6 +15,7 @@ "test:integration": "INTEGRATION_TESTS=true vitest run --config vitest.integration.config.ts", "test:integration:watch": "INTEGRATION_TESTS=true vitest --config vitest.integration.config.ts", "test:setup-credentials": "tsx src/test/integration/_helpers/setup-test-credentials.ts", + "test:cleanup-orphans": "tsx src/test/integration/_helpers/cleanup-orphans.ts", "generate-og": "tsx scripts/generate-og-images.ts" }, "dependencies": {