mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:50:43 +00:00
fix(matrix): mirror runtime deps for docker builds
(cherry picked from commit 1c843552b7)
This commit is contained in:
committed by
Peter Steinberger
parent
e36f2f92c5
commit
98c2a38bc3
@@ -47,6 +47,9 @@
|
||||
"defaultChoice": "npm",
|
||||
"minHostVersion": ">=2026.4.10",
|
||||
"allowInvalidConfigRecovery": true
|
||||
},
|
||||
"bundle": {
|
||||
"stageRuntimeDependencies": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
22
extensions/matrix/src/manifest.test.ts
Normal file
22
extensions/matrix/src/manifest.test.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import fs from "node:fs";
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
type MatrixPackageManifest = {
|
||||
dependencies?: Record<string, string>;
|
||||
openclaw?: {
|
||||
bundle?: {
|
||||
stageRuntimeDependencies?: boolean;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
describe("matrix package manifest", () => {
|
||||
it("opts into staging bundled runtime dependencies", () => {
|
||||
const packageJson = JSON.parse(
|
||||
fs.readFileSync(new URL("../package.json", import.meta.url), "utf8"),
|
||||
) as MatrixPackageManifest;
|
||||
|
||||
expect(packageJson.dependencies?.["fake-indexeddb"]).toBeDefined();
|
||||
expect(packageJson.openclaw?.bundle?.stageRuntimeDependencies).toBe(true);
|
||||
});
|
||||
});
|
||||
@@ -1461,6 +1461,7 @@
|
||||
"optionalDependencies": {
|
||||
"@discordjs/opus": "^0.10.0",
|
||||
"@matrix-org/matrix-sdk-crypto-nodejs": "^0.4.0",
|
||||
"fake-indexeddb": "^6.2.5",
|
||||
"openshell": "0.1.0"
|
||||
},
|
||||
"overrides": {
|
||||
|
||||
@@ -311,6 +311,7 @@ describe("plugin-sdk package contract guardrails", () => {
|
||||
for (const dep of [
|
||||
"@matrix-org/matrix-sdk-crypto-wasm",
|
||||
"@matrix-org/matrix-sdk-crypto-nodejs",
|
||||
"fake-indexeddb",
|
||||
"matrix-js-sdk",
|
||||
]) {
|
||||
expect(rootRuntimeDeps.get(dep)).toBe(matrixRuntimeDeps.get(dep));
|
||||
|
||||
Reference in New Issue
Block a user