Do not take into account react in the resolution of ui modules peer dependencies for supporting React 19
This commit is contained in:
parent
13c21e8910
commit
982f216a01
@ -16,6 +16,7 @@ import {
|
|||||||
import * as crypto from "crypto";
|
import * as crypto from "crypto";
|
||||||
import { KEYCLOAK_THEME } from "../shared/constants";
|
import { KEYCLOAK_THEME } from "../shared/constants";
|
||||||
import { exclude } from "tsafe/exclude";
|
import { exclude } from "tsafe/exclude";
|
||||||
|
import { isAmong } from "tsafe/isAmong";
|
||||||
|
|
||||||
export type UiModuleMeta = {
|
export type UiModuleMeta = {
|
||||||
moduleName: string;
|
moduleName: string;
|
||||||
@ -264,7 +265,12 @@ export async function getUiModuleMetas(params: {
|
|||||||
moduleName,
|
moduleName,
|
||||||
version,
|
version,
|
||||||
files,
|
files,
|
||||||
peerDependencies
|
peerDependencies: Object.fromEntries(
|
||||||
|
Object.entries(peerDependencies).filter(
|
||||||
|
([moduleName]) =>
|
||||||
|
!isAmong(["react", "@types/react"], moduleName)
|
||||||
|
)
|
||||||
|
)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user