diff --git a/packages/matrix-bot-common/package.json b/packages/matrix-bot-common/package.json index 15218c53b..82c91df0c 100644 --- a/packages/matrix-bot-common/package.json +++ b/packages/matrix-bot-common/package.json @@ -3,22 +3,48 @@ "version": "0.1.0", "private": true, "description": "Shared utilities and base classes for Matrix bots", - "main": "./src/index.ts", - "types": "./src/index.ts", + "main": "./dist/index.js", + "types": "./dist/index.d.ts", "exports": { - ".": "./src/index.ts", - "./base": "./src/base/index.ts", - "./health": "./src/health/index.ts", - "./message": "./src/message/index.ts", - "./markdown": "./src/markdown/index.ts", - "./keywords": "./src/keywords/index.ts", - "./session": "./src/session/index.ts", - "./list-mapper": "./src/list-mapper/index.ts" + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "./base": { + "types": "./dist/base/index.d.ts", + "default": "./dist/base/index.js" + }, + "./health": { + "types": "./dist/health/index.d.ts", + "default": "./dist/health/index.js" + }, + "./message": { + "types": "./dist/message/index.d.ts", + "default": "./dist/message/index.js" + }, + "./markdown": { + "types": "./dist/markdown/index.d.ts", + "default": "./dist/markdown/index.js" + }, + "./keywords": { + "types": "./dist/keywords/index.d.ts", + "default": "./dist/keywords/index.js" + }, + "./session": { + "types": "./dist/session/index.d.ts", + "default": "./dist/session/index.js" + }, + "./list-mapper": { + "types": "./dist/list-mapper/index.d.ts", + "default": "./dist/list-mapper/index.js" + } }, "scripts": { + "build": "tsc", "type-check": "tsc --noEmit", "clean": "rm -rf dist", - "lint": "eslint ." + "lint": "eslint .", + "prepublishOnly": "pnpm build" }, "dependencies": { "@manacore/bot-services": "workspace:*",