47 lines
1.5 KiB
JSON
Raw Normal View History

{
"name": "@open-matrix/federation",
"private": true,
"version": "0.2.0",
"description": "Matrix federation layer: mailbox-based cross-realm messaging with legacy (matrix3) and modern (mxenv1) wire format support and security guardrails.",
"license": "UNLICENSED",
"type": "module",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
"browser": {
"./dist/src/index.js": "./dist/src/browser.js"
},
"exports": {
".": {
"browser": "./dist/src/browser.js",
"import": "./dist/src/index.js",
"require": "./dist/src/index.js",
"default": "./dist/src/index.js"
},
"./*": {
"types": "./dist/src/*.d.ts",
"import": "./dist/src/*.js",
"require": "./dist/src/*.js",
"default": "./dist/src/*.js"
}
},
"scripts": {
"build": "tsc -p tsconfig.json && node fix-esm-imports.mjs",
"build:tests": "tsc -p tsconfig.tests.json",
"test": "node ../../scripts/run-node-tests.cjs -- tests/unit/*.spec.ts",
"test:ci": "node ../../scripts/run-node-tests.cjs -- tests/unit/*.spec.ts",
"test:unit": "node ../../scripts/run-node-tests.cjs -- tests/unit/*.spec.ts",
"test:integration": "node ../../scripts/run-node-tests.cjs -- tests/integration/*.spec.ts",
"test:quick": "node ../../scripts/run-node-tests.cjs -- tests/unit/mxesc1.spec.ts tests/unit/topics.spec.ts tests/unit/uri.spec.ts",
"type-check": "tsc --noEmit"
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"devDependencies": {
"@types/node": "^25.0.10",
"typescript": "^5.6.3"
}
}