diff --git a/README.md b/README.md index f6faf5b..cf422d6 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ const sendQuery = async () => { }; ``` -For more information on configuration options and callback types, see [the type definitions](src/types.ts) and our [Query API documentation](https://docs.vectara.com/docs/api-reference/search-apis/search). +For more information on configuration options and callback types, see [the type definitions](src/types.ts) and our [Query API documentation](https://docs.vectara.com/docs/api-reference/search-apis/stream-query). ## License diff --git a/build.js b/build.js index b45726a..41ef310 100644 --- a/build.js +++ b/build.js @@ -15,5 +15,5 @@ build({ target: ["esnext", "node12.22.0"], outdir: "./lib", outbase: "./src", - format: "esm", + format: "cjs", }); diff --git a/package.json b/package.json index c730ef8..f6c6861 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "0.0.1", "description": "A utility to conveniently send and receive data to/from Vectara's streaming query API.", "main": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "test": "test", "build": "npm run clean && node build.js && tsc --emitDeclarationOnly --outDir lib",