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.
This commit is contained in:
Anthony 2026-03-25 13:01:08 +01:00 • committed by GitHub
commit e702a253ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
}