From b0136ab00a6ee9c05a128861ecac0cbf9ecc9551 Mon Sep 17 00:00:00 2001 From: Anthony DePasquale Date: Sun, 1 Mar 2026 19:28:44 +0100 Subject: [PATCH] fix: resolve CLI path for tier-check conformance subprocess Use process.argv[1] instead of relative dist/index.js so tier-check works when invoked via npx or from outside the package directory. --- src/tier-check/checks/test-conformance-results.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/tier-check/checks/test-conformance-results.ts b/src/tier-check/checks/test-conformance-results.ts index 5ba9849..054ce44 100644 --- a/src/tier-check/checks/test-conformance-results.ts +++ b/src/tier-check/checks/test-conformance-results.ts @@ -182,9 +182,8 @@ export async function checkConformance(options: { try { execSync( - `node dist/index.js server --url ${options.serverUrl} -o ${outputDir}`, + `node "${process.argv[1]}" server --url ${options.serverUrl} -o ${outputDir}`, { - cwd: process.cwd(), stdio: ['pipe', 'pipe', 'pipe'], timeout: 120_000 } @@ -222,9 +221,8 @@ export async function checkClientConformance(options: { try { execSync( - `node dist/index.js client --command '${options.clientCmd}' --suite all -o ${outputDir}`, + `node "${process.argv[1]}" client --command '${options.clientCmd}' --suite all -o ${outputDir}`, { - cwd: process.cwd(), stdio: ['pipe', 'pipe', 'pipe'], timeout: 120_000 }