Skip to content

Commit e702a25

Browse files
fix: resolve CLI path for tier-check conformance subprocess (#175)
Use process.argv[1] instead of relative dist/index.js so tier-check works when invoked via npx or from outside the package directory.
1 parent 7b5865a commit e702a25

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/tier-check/checks/test-conformance-results.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,8 @@ export async function checkConformance(options: {
182182

183183
try {
184184
execSync(
185-
`node dist/index.js server --url ${options.serverUrl} -o ${outputDir}`,
185+
`node "${process.argv[1]}" server --url ${options.serverUrl} -o ${outputDir}`,
186186
{
187-
cwd: process.cwd(),
188187
stdio: ['pipe', 'pipe', 'pipe'],
189188
timeout: 120_000
190189
}
@@ -222,9 +221,8 @@ export async function checkClientConformance(options: {
222221

223222
try {
224223
execSync(
225-
`node dist/index.js client --command '${options.clientCmd}' --suite all -o ${outputDir}`,
224+
`node "${process.argv[1]}" client --command '${options.clientCmd}' --suite all -o ${outputDir}`,
226225
{
227-
cwd: process.cwd(),
228226
stdio: ['pipe', 'pipe', 'pipe'],
229227
timeout: 120_000
230228
}

0 commit comments

Comments
 (0)