From 6314cf7965a1b05538c0c38c41761ebb8b6236cc Mon Sep 17 00:00:00 2001 From: zachey <63107653+zachey01@users.noreply.github.com> Date: Wed, 10 Jul 2024 16:15:43 +0500 Subject: [PATCH] Update package.json --- package.json | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index bcb94f7..78d4ec0 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,24 @@ "description": "Using ChatGPT4/3.5-turbo/Gemini-Pro/BlackBox and etc. unlimited and free.", "main": "index.cjs", "module": "index.js", + "jest": { + "transform": { + "^.+\\.js$": "babel-jest" + } + }, + "exports": { + ".": { + "import": "./index.js", + "require": "./index.cjs" + } + }, "type": "module", - "bin": { - "gpt4js": "./src/bin/main.js" + "devDependencies": { + "@babel/preset-env": "^7.24.7", + "babel-jest": "^29.7.0", + "jest": "^29.7.0", + "prettier": "3.3.2", + "webpack-cli": "^5.1.4" }, "scripts": { "build": "npx webpack --mode=production", @@ -17,15 +32,6 @@ "prettier:format": "prettier --write \"**/*.{ts,tsx,js,md,mdx,css,yaml}\"", "prettier:check": "prettier --check \"**/*.{ts,tsx,js,md,mdx,css,yaml}\"" }, - "devDependencies": { - "@babel/preset-env": "^7.24.7", - "babel-jest": "^29.7.0", - "bun": "^0.5.1", - "jest": "^29.7.0", - "prettier": "3.3.2", - "webpack": "^5.74.0", - "webpack-cli": "^5.1.4" - }, "repository": { "type": "git", "url": "git+https://github.com/zachey01/gpt4free.js.git" @@ -35,6 +41,9 @@ "bugs": { "url": "https://github.com/zachey01/gpt4free.js/issues" }, + "bin": { + "gpt4js": "./src/bin/main.js" + }, "homepage": "https://github.com/zachey01/gpt4free.js#readme", "keywords": [ "nodejs", @@ -52,10 +61,5 @@ "chatbot", "nlp", "machine-learning" - ], - "jest": { - "transform": { - "^.+.js$": "babel-jest" - } - } + ] }