From 38bc517ae34914656345c397467891802ffeba7c Mon Sep 17 00:00:00 2001 From: Alin Voinea Date: Wed, 28 Jun 2023 12:53:12 +0300 Subject: [PATCH] fix: Fix i18n make command and eslint - refs #254894 --- Makefile | 3 ++- babel.config.js-use-when-running-i18n | 1 - src/components/index.js | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) delete mode 100644 babel.config.js-use-when-running-i18n diff --git a/Makefile b/Makefile index 6c18722..13481d3 100644 --- a/Makefile +++ b/Makefile @@ -117,7 +117,8 @@ lint-fix: ## Fix ES Lint .PHONY: i18n i18n: ## i18n - ${DOCKER_COMPOSE} run frontend i18n + rm -rf build/messages + NODE_ENV=development $(NODE_MODULES)/.bin/i18n --addon .PHONY: help help: ## Show this help. diff --git a/babel.config.js-use-when-running-i18n b/babel.config.js-use-when-running-i18n deleted file mode 100644 index a900a75..0000000 --- a/babel.config.js-use-when-running-i18n +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@plone/volto/babel'); diff --git a/src/components/index.js b/src/components/index.js index b8e3843..4bd9c13 100644 --- a/src/components/index.js +++ b/src/components/index.js @@ -1,5 +1,5 @@ -export AccordionLayoutSchema from '@eeacms/volto-accordion-block/components/manage/Blocks/Accordion/LayoutSchema'; +export { default as AccordionLayoutSchema } from '@eeacms/volto-accordion-block/components/manage/Blocks/Accordion/LayoutSchema'; export { AccordionStylingSchema } from '@eeacms/volto-accordion-block/components/manage/Blocks/Accordion/Schema'; -export AccordionBlockEdit from '@eeacms/volto-accordion-block/components/manage/Blocks/Accordion/Edit'; -export AccordionBlockView from '@eeacms/volto-accordion-block/components/manage/Blocks/Accordion/View'; -export PanelsWidget from '@eeacms/volto-accordion-block/components/manage/Widgets/PanelsWidget'; +export { default as AccordionBlockEdit } from '@eeacms/volto-accordion-block/components/manage/Blocks/Accordion/Edit'; +export { default as AccordionBlockView } from '@eeacms/volto-accordion-block/components/manage/Blocks/Accordion/View'; +export { default as PanelsWidget } from '@eeacms/volto-accordion-block/components/manage/Widgets/PanelsWidget';