Skip to content

Commit

Permalink
fix(js/plugins/vertexai): add package.json exports to reranker
Browse files Browse the repository at this point in the history
  • Loading branch information
cabljac committed Oct 21, 2024
1 parent d073e72 commit 1d1b83f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion js/plugins/vertexai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,22 @@
"import": "./lib/index.mjs",
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
},
"./reranker": {
"require": "./lib/reranker/index.js",
"import": "./lib/reranker/index.mjs",
"types": "./lib/reranker/index.d.ts",
"default": "./lib/reranker/index.js"
}
},
"typesVersions": {
"*": {}
"*": {
".": [
"./lib/index.d.ts"
],
"./reranker": [
"./lib/reranker/index.d.ts"
]
}
}
}
2 changes: 1 addition & 1 deletion js/testapps/vertexai-reranker/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compileOnSave": true,
"include": ["src"],
"compilerOptions": {
"module": "commonjs",
"module": "NodeNext",
"noImplicitReturns": true,
"outDir": "lib",
"sourceMap": true,
Expand Down

0 comments on commit 1d1b83f

Please sign in to comment.