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:
parent
7b5865a874
commit
e702a253ba
1 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue