mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-21 22:52:19 +03:00
fix(release): align onnxruntime dependency contract test
This commit is contained in:
committed by
adevwithpurpose
parent
7f5275ed6b
commit
9081b57146
@@ -15,7 +15,7 @@ test("@huggingface/transformers is a regular dependency so npm ci never skips it
|
|||||||
// pin dragged onnxruntime-node@1.21.0 whose NAN build no longer compiles), which
|
// pin dragged onnxruntime-node@1.21.0 whose NAN build no longer compiles), which
|
||||||
// broke `npm ci`/`next build` with "Can't resolve @huggingface/transformers"
|
// broke `npm ci`/`next build` with "Can't resolve @huggingface/transformers"
|
||||||
// (lazy import in src/lib/memory/embedding/transformersLocal.ts). As a regular
|
// (lazy import in src/lib/memory/embedding/transformersLocal.ts). As a regular
|
||||||
// dep with onnxruntime-node@~1.27.0 (napi prebuilds, no node-gyp) it stays
|
// dep with onnxruntime-node@~1.24.3 (napi prebuilds, no node-gyp) it stays
|
||||||
// installable and the memory embedding path requires() cleanly.
|
// installable and the memory embedding path requires() cleanly.
|
||||||
const pkg = readJson<{
|
const pkg = readJson<{
|
||||||
dependencies?: Record<string, string>;
|
dependencies?: Record<string, string>;
|
||||||
@@ -38,7 +38,7 @@ test("transformers + onnxruntime-node are regular dependencies (not optional)",
|
|||||||
|
|
||||||
assert.equal(
|
assert.equal(
|
||||||
pkg.dependencies?.["onnxruntime-node"],
|
pkg.dependencies?.["onnxruntime-node"],
|
||||||
"~1.27.0",
|
"~1.24.3",
|
||||||
"onnxruntime-node is a regular dep (napi prebuilds, installable on Node 24/26)"
|
"onnxruntime-node is a regular dep (napi prebuilds, installable on Node 24/26)"
|
||||||
);
|
);
|
||||||
assert.equal(pkg.optionalDependencies?.["onnxruntime-node"], undefined);
|
assert.equal(pkg.optionalDependencies?.["onnxruntime-node"], undefined);
|
||||||
|
|||||||
Reference in New Issue
Block a user