mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-16 09:59:41 +02:00
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 <noreply@anthropic.com>
This commit is contained in:
parent
cfaf9f2f6e
commit
12f1288aec
1 changed files with 37 additions and 11 deletions
|
|
@ -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:*",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue