* Upgrade to TypeScript 7 for massive tsc speed gains Those on WebStorm will want to upgrade to EAP to reap the benefits of the new TSGo compiler Some things (module-api & shared-components) which utilise unplugin-dts (and api-extractor) need to hold a copy of ts6 for its conventional lib format and API. TS7 ships with no API until TS7.1. Other things which use eslint also need ts6 for typescript-eslint. Some type changes were necessary as TS7 caught some issues. * Add knip exception * Fix bad merge
76 lines
2.2 KiB
JSON
76 lines
2.2 KiB
JSON
{
|
|
"name": "@element-hq/element-web-module-api",
|
|
"type": "module",
|
|
"version": "1.15.0",
|
|
"description": "Module API surface for element-web",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/element-hq/element-web.git",
|
|
"directory": "packages/module-api"
|
|
},
|
|
"author": "element-hq",
|
|
"license": "SEE LICENSE IN README.md",
|
|
"engines": {
|
|
"node": ">=20.0.0"
|
|
},
|
|
"types": "./lib/element-web-module-api-alpha.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./lib/element-web-module-api-alpha.d.ts",
|
|
"import": "./lib/element-web-plugin-engine.js",
|
|
"require": "./lib/element-web-plugin-engine.umd.cjs"
|
|
},
|
|
"./vite.base.ts": {
|
|
"types": "./vite.base.ts",
|
|
"import": "./vite.base.ts"
|
|
}
|
|
},
|
|
"files": [
|
|
"lib",
|
|
"vite.base.ts"
|
|
],
|
|
"scripts": {
|
|
"prepack": "nx build",
|
|
"lint:types": "nx lint:types",
|
|
"test:unit": "vitest",
|
|
"coverage": "pnpm test:unit --coverage",
|
|
"coverage:diff": "diff-cover --config-file ../../diff-cover.toml coverage/lcov.info"
|
|
},
|
|
"devDependencies": {
|
|
"@matrix-org/react-sdk-module-api": "^2.5.0",
|
|
"@microsoft/api-extractor": "^7.49.1",
|
|
"@types/node": "catalog:ts6",
|
|
"@types/react": "catalog:",
|
|
"@types/react-dom": "catalog:",
|
|
"@types/semver": "^7.5.8",
|
|
"@typescript/native": "catalog:",
|
|
"matrix-widget-api": "^1.17.0",
|
|
"rollup-plugin-external-globals": "^0.13.0",
|
|
"semver": "^7.6.3",
|
|
"shared-types": "workspace:*",
|
|
"typescript": "catalog:ts6",
|
|
"unplugin-dts": "catalog:",
|
|
"vite": "catalog:",
|
|
"vitest": "catalog:"
|
|
},
|
|
"peerDependencies": {
|
|
"@matrix-org/react-sdk-module-api": "*",
|
|
"@types/react": "*",
|
|
"@types/react-dom": "*",
|
|
"matrix-web-i18n": "*",
|
|
"matrix-widget-api": "*",
|
|
"react": "^19"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"@matrix-org/react-sdk-module-api": {
|
|
"optional": true
|
|
},
|
|
"matrix-widget-api": {
|
|
"optional": true
|
|
},
|
|
"matrix-web-i18n": {
|
|
"optional": true
|
|
}
|
|
}
|
|
}
|