fix(node): make openai and huggingface optional dependencies (#1809)

BREAKING CHANGE: openai and huggingface now have separate entrypoints.

Closes [#1624](https://github.com/lancedb/lancedb/issues/1624)
This commit is contained in:
Will Jones
2024-11-14 15:04:35 -08:00
committed by GitHub
parent 119d88b9db
commit b38a4269d0
4 changed files with 9 additions and 12 deletions
+3 -1
View File
@@ -14,7 +14,9 @@
"main": "dist/index.js",
"exports": {
".": "./dist/index.js",
"./embedding": "./dist/embedding/index.js"
"./embedding": "./dist/embedding/index.js",
"./embedding/openai": "./dist/embedding/openai.js",
"./embedding/transformers": "./dist/embedding/transformers.js"
},
"types": "dist/index.d.ts",
"napi": {