diff --git a/search/algolia/src/index.ts b/search/algolia/src/index.ts index 39cb51ab2..cbc601963 100644 --- a/search/algolia/src/index.ts +++ b/search/algolia/src/index.ts @@ -1,5 +1,4 @@ import { useSearch } from './useSearch'; - export { AlgoliaSearchOptions } from './types'; export default useSearch; diff --git a/search/algolia/src/indexing.ts b/search/algolia/src/indexing.ts index c42540173..3387dde1f 100644 --- a/search/algolia/src/indexing.ts +++ b/search/algolia/src/indexing.ts @@ -6,8 +6,7 @@ import { } from '@component-controls/core'; import { log } from '@component-controls/logger'; import { AlgoliaSearchOptions } from './types'; - -module.exports = async (store: Store): Promise => { +export default async (store: Store): Promise => { const { options, fields } = store.config.search || {}; if (!options) { return; diff --git a/search/fusejs/src/index.ts b/search/fusejs/src/index.ts index 14e14abec..d0dd8c068 100644 --- a/search/fusejs/src/index.ts +++ b/search/fusejs/src/index.ts @@ -1,4 +1,4 @@ -import { useSearch as useFuseSearch } from './useSearch'; +import { useSearch } from './useSearch'; export { FuseJSSearchOptions } from './types'; -module.exports = useFuseSearch; +export default useSearch; diff --git a/search/fusejs/src/indexing.ts b/search/fusejs/src/indexing.ts index 2f9400ded..4fc37150a 100644 --- a/search/fusejs/src/indexing.ts +++ b/search/fusejs/src/indexing.ts @@ -1,3 +1,3 @@ -module.exports = async (): Promise => { +export default async (): Promise => { return; };