Skip to content

Commit

Permalink
feat(orama): exports trees (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
micheleriva authored Sep 8, 2023
1 parent d40e1dc commit fbbaf80
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
5 changes: 5 additions & 0 deletions packages/orama/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
9 changes: 9 additions & 0 deletions packages/orama/src/cjs/trees.cts
Original file line number Diff line number Diff line change
@@ -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
2 changes: 0 additions & 2 deletions packages/orama/src/internals.ts
Original file line number Diff line number Diff line change
@@ -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'
3 changes: 3 additions & 0 deletions packages/orama/src/trees.ts
Original file line number Diff line number Diff line change
@@ -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'

1 comment on commit fbbaf80

@vercel
Copy link

@vercel vercel bot commented on fbbaf80 Sep 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.