Skip to content

Commit

Permalink
Update scalprum shared packages config.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyperkid123 committed Aug 14, 2024
1 parent 87e6500 commit d52196e
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 d52196e

Please sign in to comment.