Skip to content

Commit 5f3e8b3

Browse files
committed
fix: wrong main and types in api-elasticsearch
1 parent dc23bd7 commit 5f3e8b3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/api-elasticsearch/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@webiny/api-elasticsearch",
33
"version": "0.0.0",
44
"type": "module",
5+
"main": "index.js",
56
"repository": {
67
"type": "git",
78
"url": "https://github.com/webiny/webiny-js.git",

packages/api-elasticsearch/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export * from "./indexPrefix.js";
2727
export * from "./db/index.js";
2828

2929

30-
const clientContextPlugin = (
30+
export const clientContextPlugin = (
3131
params: ElasticsearchClientOptions | Client
3232
): ContextPlugin<ElasticsearchContext> => {
3333
return new ContextPlugin<ElasticsearchContext>(context => {

0 commit comments

Comments
 (0)