mirror of
https://github.com/element-hq/element-call.git
synced 2026-09-10 11:35:44 +00:00
`component/package.json` describes the built component as a package (`@element-hq/element-call-component`: entry, stylesheet subpath, types, peer dependencies) so that a host can depend on `github:element-hq/element-call#<ref>&path:/component`. Its `prepare` script builds on install, since nothing is published yet. For that the component build now lands in `component/dist` instead of the repository's `dist`, and `pnpm build:component` also emits the type declarations (`component/tsconfig.build.json`, `build:component:types`), which previously had to be produced by hand. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
43 lines
1.1 KiB
JSON
43 lines
1.1 KiB
JSON
{
|
|
"name": "@element-hq/element-call-component",
|
|
"version": "0.0.0",
|
|
"description": "Element Call as a React component. Consumed straight from the repository as a git dependency (github:element-hq/element-call#<ref>&path:/component): the host's package manager runs `prepare`, which builds `dist/`.",
|
|
"license": "SEE LICENSE IN ../README.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/element-hq/element-call",
|
|
"directory": "component"
|
|
},
|
|
"type": "module",
|
|
"devEngines": {
|
|
"packageManager": {
|
|
"name": "pnpm"
|
|
}
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"main": "./dist/element-call.js",
|
|
"module": "./dist/element-call.js",
|
|
"types": "./dist/types/component/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/types/component/index.d.ts",
|
|
"default": "./dist/element-call.js"
|
|
},
|
|
"./style.css": "./dist/element-call.css"
|
|
},
|
|
"sideEffects": [
|
|
"*.css"
|
|
],
|
|
"scripts": {
|
|
"prepare": "cd .. && pnpm install --frozen-lockfile && pnpm build:component"
|
|
},
|
|
"peerDependencies": {
|
|
"livekit-client": "^2.18.1",
|
|
"matrix-js-sdk": "*",
|
|
"react": "^19",
|
|
"react-dom": "^19"
|
|
}
|
|
}
|