Skip to content

Commit

Permalink
fix: rearrange files to be included in bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
amandesai01 committed Jan 15, 2024
1 parent 751d5fa commit 36c4312
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineNuxtModule, addPlugin, createResolver, addImportsDir } from '@nuxt/kit'
import type { CreateAnyOramaArguments } from './interfaces';
import type { CreateAnyOramaArguments } from './runtime/interfaces';

// Module options TypeScript interface definition
export interface ModuleOptions {
Expand Down
4 changes: 2 additions & 2 deletions src/runtime/composables/useOramaInstance.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useNuxtApp } from "nuxt/app";
import { DEFAULT_KEY } from "../../constants";
import type { NuxtOramaProvider } from "../../interfaces";
import { DEFAULT_KEY } from "../constants";
import type { NuxtOramaProvider } from "../interfaces";

export default function useOramaInstance(id?: string) {
const key = id || DEFAULT_KEY;
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/composables/useOramaSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
type Results,
type SearchParams,
} from "@orama/orama";
import { wrapPromiseToRef } from "../../utils";
import { wrapPromiseToRef } from "../utils";
import { ref, type Ref } from "#imports";
import useOramaInstance from "./useOramaInstance";

Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/runtime/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineNuxtPlugin } from '#app'
import { create as createoramaInstance, type AnyOrama } from '@orama/orama';
import type { CreateAnyOramaArguments, NuxtOramaProvider } from '../interfaces';
import { DEFAULT_KEY } from '../constants';
import type { CreateAnyOramaArguments, NuxtOramaProvider } from './interfaces';
import { DEFAULT_KEY } from './constants';

export default defineNuxtPlugin(async (nuxtApp) => {
// Skip plugin when rendering error page
Expand Down
File renamed without changes.

0 comments on commit 36c4312

Please sign in to comment.