From 12f1288aecbf3f6c7c04a51aa2dc53b25f734c01 Mon Sep 17 00:00:00 2001 From: Till-JS <101404291+Till-JS@users.noreply.github.com> Date: Sun, 1 Feb 2026 03:37:20 +0100 Subject: [PATCH] build(matrix-bot-common): add build step for Node.js v25 compatibility - Add build script to compile TypeScript to dist/ - Update exports to point to compiled JavaScript files - Requires running 'pnpm --filter @manacore/matrix-bot-common build' before consuming Co-Authored-By: Claude Opus 4.5 --- packages/matrix-bot-common/package.json | 48 +++++++++++++++++++------ 1 file changed, 37 insertions(+), 11 deletions(-) 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:*",