Skip to content

Commit

Permalink
Merge pull request #2048 from Hyperkid123/update-shared-packages
Browse files Browse the repository at this point in the history
Update scalprum shared packages config.
  • Loading branch information
Hyperkid123 authored Aug 14, 2024
2 parents 87e6500 + d52196e commit b68b4cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/config-utils/src/federated-modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ const federatedModules = ({
* It is required to share the context via `useChrome`.
* No application should be installing/interacting with scalprum directly.
*/
if (dependencies['@redhat-cloud-services/frontend-components']) {
if (dependencies['@redhat-cloud-services/frontend-components'] || dependencies['@scalprum/react-core'] || dependencies['@scalprum/core']) {
sharedDeps['@scalprum/react-core'] = { requiredVersion: '*', singleton: true, eager: false, import: false };
sharedDeps['@scalprum/core'] = { requiredVersion: '*', singleton: true, eager: false, import: false };
}

/**
Expand Down

0 comments on commit b68b4cf

Please sign in to comment.