mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 10:30:44 +00:00
fix(install): mirror node-domexception override for npm (#69819)
* fix(install): mirror node-domexception override for npm * docs(changelog): credit npm install override fix * fix(install): pin domexception override exactly * docs(changelog): drop leftover npm fix merge markers * Update CHANGELOG.md
This commit is contained in:
25
test/scripts/root-package-overrides.test.ts
Normal file
25
test/scripts/root-package-overrides.test.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
type RootPackageManifest = {
|
||||
overrides?: Record<string, string>;
|
||||
pnpm?: {
|
||||
overrides?: Record<string, string>;
|
||||
};
|
||||
};
|
||||
|
||||
function readRootManifest(): RootPackageManifest {
|
||||
const manifestPath = path.resolve(process.cwd(), "package.json");
|
||||
return JSON.parse(fs.readFileSync(manifestPath, "utf8")) as RootPackageManifest;
|
||||
}
|
||||
|
||||
describe("root package override guardrails", () => {
|
||||
it("pins the node-domexception alias exactly in npm and pnpm overrides", () => {
|
||||
const manifest = readRootManifest();
|
||||
const pnpmOverride = manifest.pnpm?.overrides?.["node-domexception"];
|
||||
|
||||
expect(pnpmOverride).toBe("npm:@nolyfill/domexception@1.0.28");
|
||||
expect(manifest.overrides?.["node-domexception"]).toBe(pnpmOverride);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user