From e8180fcbc59f9f1b412ce1a71d73b127badbf682 Mon Sep 17 00:00:00 2001 From: Oluwaseun Olorunsola Date: Tue, 5 Nov 2024 10:14:26 +0100 Subject: [PATCH] Convert named alias to relative paths. This seems to be having an issue with the current webpack config and the babel loader. We will fix the issue on another ticket MAILPOET-6215 --- .../src/engine/components/header/send-button.tsx | 4 ++-- .../src/engine/components/notices/validation-notices.tsx | 2 +- .../engine/components/template-select/template-selection.tsx | 2 +- .../email-editor/src/engine/hooks/use-content-validation.ts | 2 +- packages/js/email-editor/tsconfig.json | 5 +---- 5 files changed, 6 insertions(+), 9 deletions(-) diff --git a/packages/js/email-editor/src/engine/components/header/send-button.tsx b/packages/js/email-editor/src/engine/components/header/send-button.tsx index 9b7dccbbfb..c007d773dc 100644 --- a/packages/js/email-editor/src/engine/components/header/send-button.tsx +++ b/packages/js/email-editor/src/engine/components/header/send-button.tsx @@ -6,9 +6,9 @@ import { useEntitiesSavedStatesIsDirty, } from '@wordpress/editor'; import { useEntityProp } from '@wordpress/core-data'; -import { MailPoetEmailData, storeName } from 'email-editor/engine/store'; +import { MailPoetEmailData, storeName } from '../../store'; import { useSelect } from '@wordpress/data'; -import { useContentValidation } from 'email-editor/engine/hooks'; +import { useContentValidation } from '../../hooks'; export function SendButton() { const [mailpoetEmail] = useEntityProp( diff --git a/packages/js/email-editor/src/engine/components/notices/validation-notices.tsx b/packages/js/email-editor/src/engine/components/notices/validation-notices.tsx index 641ed73a2e..187795c5be 100644 --- a/packages/js/email-editor/src/engine/components/notices/validation-notices.tsx +++ b/packages/js/email-editor/src/engine/components/notices/validation-notices.tsx @@ -1,6 +1,6 @@ import { __ } from '@wordpress/i18n'; import { Notice, Button } from '@wordpress/components'; -import { useValidationNotices } from 'email-editor/engine/hooks'; +import { useValidationNotices } from '../../hooks'; export function ValidationNotices() { const { notices } = useValidationNotices(); diff --git a/packages/js/email-editor/src/engine/components/template-select/template-selection.tsx b/packages/js/email-editor/src/engine/components/template-select/template-selection.tsx index f6524e69da..e9b119529e 100644 --- a/packages/js/email-editor/src/engine/components/template-select/template-selection.tsx +++ b/packages/js/email-editor/src/engine/components/template-select/template-selection.tsx @@ -1,6 +1,6 @@ import { useSelect } from '@wordpress/data'; import { useState } from '@wordpress/element'; -import { storeName } from 'email-editor/engine/store'; +import { storeName } from '../../store'; import { SelectTemplateModal } from './select-modal'; export function TemplateSelection() { diff --git a/packages/js/email-editor/src/engine/hooks/use-content-validation.ts b/packages/js/email-editor/src/engine/hooks/use-content-validation.ts index a6595d7650..6b446741d3 100644 --- a/packages/js/email-editor/src/engine/hooks/use-content-validation.ts +++ b/packages/js/email-editor/src/engine/hooks/use-content-validation.ts @@ -3,7 +3,7 @@ import { useCallback, useMemo } from '@wordpress/element'; import { dispatch, useSelect, subscribe } from '@wordpress/data'; import { store as blockEditorStore } from '@wordpress/block-editor'; import { createBlock } from '@wordpress/blocks'; -import { storeName as emailEditorStore } from 'email-editor/engine/store'; +import { storeName as emailEditorStore } from '../store'; import { store as coreDataStore } from '@wordpress/core-data'; import { useShallowEqual } from './use-shallow-equal'; import { useValidationNotices } from './use-validation-notices'; diff --git a/packages/js/email-editor/tsconfig.json b/packages/js/email-editor/tsconfig.json index 8b19ddf49e..1cfe97d076 100644 --- a/packages/js/email-editor/tsconfig.json +++ b/packages/js/email-editor/tsconfig.json @@ -3,9 +3,6 @@ "include": ["src/**/*", "src/**/*.json"], "compilerOptions": { "rootDir": "src", - "outDir": "build-types", - "paths": { - "email-editor/*": ["./src/*"] - } + "noEmit": true } }