From 178e4677a4d2242dbe2ad5c4d002f558590c74c2 Mon Sep 17 00:00:00 2001 From: Keysat Date: Thu, 18 Jun 2026 14:45:56 -0500 Subject: [PATCH] Fix crosscheck harness to resolve TS SDK build relative to repo The TS runner imported the built SDK via a hardcoded dev-machine path (/sessions/.../ts-sdk-build/dist/index.js), so the harness only ran on the author's box. Resolve it relative to the file instead. --- tests/crosscheck/run_ts.mjs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/crosscheck/run_ts.mjs b/tests/crosscheck/run_ts.mjs index d6030c1..0d2e751 100644 --- a/tests/crosscheck/run_ts.mjs +++ b/tests/crosscheck/run_ts.mjs @@ -1,12 +1,14 @@ import { readFileSync } from 'node:fs' -import { +// Resolve the built TS SDK relative to this file so the harness runs on any +// machine. Build it first: `cd licensing-client-ts && npm run build` (see README). +const { Verifier, PublicKey, hashFingerprint, parseLicenseKey, isExpiredAt, hasEntitlement, -} from '/sessions/hopeful-determined-edison/ts-sdk-build/dist/index.js' +} = await import(new URL('../../licensing-client-ts/dist/index.js', import.meta.url)) const vector = JSON.parse(readFileSync(new URL('./vector.json', import.meta.url), 'utf8'))