From 7a2657a4ade26fe3fb41c6b2af2aaebe80047622 Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Wed, 1 Jul 2020 17:27:27 +0530 Subject: [PATCH] . --- package.json | 9 ++++----- tsconfig.json | 5 ++--- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 5acb832..e2319c4 100644 --- a/package.json +++ b/package.json @@ -2,9 +2,9 @@ "name": "@adiwajshing/baileys", "version": "2.0.0", "description": "WhatsApp Web API", - "main": "lib/WAClient/WAClient.js", "homepage": "https://github.com/adiwajshing/Baileys", - "type": "module", + "main": "lib/WAClient/WAClient.js", + "types": "lib/WAClient/WAClient.d.ts", "keywords": [ "whatsapp", "js-whatsapp", @@ -17,11 +17,10 @@ "automation" ], "scripts": { - "prepare": "npm run tsc", + "prepare": "npm run build", "test": "mocha --timeout 30000 -r ts-node/register */Tests.ts", "lint": "eslint '*/*.ts' --quiet --fix", - "tsc": "tsc", - "dev": "ts-node-dev --respawn --transpileOnly ./app/app.ts", + "build": "tsc", "example": "npx ts-node Example/example.ts" }, "author": "Adhiraj Singh", diff --git a/tsconfig.json b/tsconfig.json index f89701f..ef7647d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,15 +2,14 @@ "compilerOptions": { "target": "es5", "module": "commonjs", - "moduleResolution": "node", "allowJs": true, "checkJs": false, - "outDir": "lib/", + "outDir": "lib", "strict": false, "noImplicitThis": true, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, - "resolveJsonModule": true + "declaration": true }, "include": ["*/*.ts"], "exclude": ["node_modules", "*/Tests.ts"]