Skip to content

Commit

Permalink
adding main entrypoint and updated package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
pranav-kural committed Jul 8, 2024
1 parent fcd7360 commit 85377c8
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 20 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
{
"name": "@oconva/qvikchat",
"version": "1.0.1",
"version": "1.0.2",
"repository": {
"type": "git",
"url": "https://github.com/oconva/qvikchat.git"
},
"bugs": {
"url": "ttps://github.com/oconva/qvikchat/issues"
},
"homepage": "https://qvikchat.pkural.ca",
"main": "lib/index.js",
"scripts": {
"start": "node lib/index.js",
Expand All @@ -18,6 +22,7 @@
"predeploy": "pnpm lint && pnpm format && pnpm build && pnpm test"
},
"keywords": [
"qvikchat",
"conversational ai",
"chat",
"chatbot",
Expand All @@ -38,10 +43,22 @@
"src/*"
],
"exports": {
".": {
"types": "./lib/index.d.ts",
"import": "./lib/index.js",
"require": "./lib/index.js",
"default": "./lib/index.js"
},
"./agents": {
"types": "./lib/agents/chat-agents.d.ts",
"import": "./lib/agents/chat-agent.js",
"require": "./lib/agents/chat-agent.js",
"import": {
"default": "./lib/agents/chat-agents.js",
"types": "./lib/agents/chat-agents.d.ts"
},
"require": {
"default": "./lib/agents/chat-agents.js",
"types": "./lib/agents/chat-agents.d.ts"
},
"default": "./lib/agents/chat-agent.js"
},
"./auth": {
Expand Down
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
console.warn(
`[WARNING]: The root QvikChat entrypoint is empty. Please use a specific entrypoint instead.`
);
export {};
1 change: 0 additions & 1 deletion src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export function getChatHistoryAsString(messages: MessageData[]): string {
export function getEnvironmentVariable(name: string, envFileName?: string) {
// Certain Deno setups will throw an error if you try to access environment variables
// https://github.com/langchain-ai/langchainjs/issues/1412
console.log("getEnvironmentVariable: ", pathResolve(envFileName ?? ".env"));
try {
dotenvConfig({
path: pathResolve(envFileName ?? ".env"),
Expand Down

0 comments on commit 85377c8

Please sign in to comment.