From 6d20c22f67f43c5090d7d3e6aabf9a204887e67a Mon Sep 17 00:00:00 2001 From: Mirek Simek Date: Sat, 23 Dec 2023 20:36:47 +0100 Subject: [PATCH] Another invenio-rdm dependency fix --- oarepo_ui/theme/webpack.py | 12 ++++++++++-- setup.cfg | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/oarepo_ui/theme/webpack.py b/oarepo_ui/theme/webpack.py index ddf034f1..cd37fd61 100644 --- a/oarepo_ui/theme/webpack.py +++ b/oarepo_ui/theme/webpack.py @@ -46,8 +46,11 @@ "react-datepicker": "^4.21.0", } else: - # RDM 12 webpack dependencies are already included in the oarepo python package - dependencies = {} + # RDM 12 webpack dependencies are already included in the oarepo python package, so we just include + # those used in our own components here + dependencies = { + "react-datepicker": "^4.21.0", + } theme = WebpackThemeBundle( __name__, @@ -72,8 +75,13 @@ # search and edit "@less/oarepo_ui": "less/oarepo_ui", "@js/oarepo_ui": "js/oarepo_ui", + # hack for communities being dependent on RDM "@translations/invenio_app_rdm/i18next": "translations/oarepo_ui/i18next.js", + + # hack for vocabularies being dependent on RDM + "@translations/invenio_rdm_records/i18next": "translations/oarepo_ui/i18next.js", + # another hack for communities "@templates/custom_fields": "js/custom_fields", }, diff --git a/setup.cfg b/setup.cfg index d6b0e290..a1e81bd0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = oarepo-ui -version = 5.0.92 +version = 5.0.93 description = UI module for invenio 3.5+ long_description = file: README.md long_description_content_type = text/markdown