diff --git a/packages/orama/package.json b/packages/orama/package.json index 1fd4baa12..e74ad68c0 100644 --- a/packages/orama/package.json +++ b/packages/orama/package.json @@ -20,6 +20,11 @@ "types": "./dist/components.d.ts", "import": "./dist/components.js", "require": "./dist/cjs/components.cjs" + }, + "./trees": { + "types": "./dist/trees.d.ts", + "import": "./dist/trees.js", + "require": "./dist/cjs/trees.cjs" } }, "types": "./dist/index.d.ts", diff --git a/packages/orama/src/cjs/trees.cts b/packages/orama/src/cjs/trees.cts new file mode 100644 index 000000000..3e1796e5c --- /dev/null +++ b/packages/orama/src/cjs/trees.cts @@ -0,0 +1,9 @@ +import { + avl as esmAVL, + radix as esmRadix, + zip as esmZip +} from '../trees.js' + +export const avl = esmAVL +export const radix = esmRadix +export const zip = esmZip \ No newline at end of file diff --git a/packages/orama/src/internals.ts b/packages/orama/src/internals.ts index 100d71dee..082dcc4f2 100644 --- a/packages/orama/src/internals.ts +++ b/packages/orama/src/internals.ts @@ -1,4 +1,2 @@ export { boundedLevenshtein } from './components/levenshtein.js' export { formatBytes, formatNanoseconds, getNanosecondsTime, uniqueId } from './utils.js' -export * as radixTree from './trees/radix.js' -export * as avl from './trees/avl.js' diff --git a/packages/orama/src/trees.ts b/packages/orama/src/trees.ts new file mode 100644 index 000000000..ef4fa190e --- /dev/null +++ b/packages/orama/src/trees.ts @@ -0,0 +1,3 @@ +export * as radix from './trees/radix.js' +export * as avl from './trees/avl.js' +export * as zip from './trees/zip.js' \ No newline at end of file