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'))