{ "name": "matrix-widget-api", "version": "1.19.0", "description": "Matrix Widget API SDK", "main": "./lib/index.js", "types": "./lib/index.d.ts", "repository": "https://github.com/matrix-org/matrix-widget-api", "author": "The Matrix.org Foundation C.I.C.", "license": "Apache-2.0", "scripts": { "start": "tsc -w", "clean": "rimraf lib dist", "build": "yarn clean && yarn build:compile && yarn build:types && yarn build:browser", "build:compile": "babel -d lib --verbose --extensions \".ts\" src", "build:types": "tsc --emitDeclarationOnly", "build:browser": "yarn build:browser:dev && yarn build:browser:prod", "build:browser:dev": "browserify lib/index.js --debug --s mxwidgets -o dist/api.js", "build:browser:prod": "browserify lib/index.js --s mxwidgets -p tinyify -o dist/api.min.js", "lint": "yarn lint:types && yarn lint:ts && yarn lint:workflows", "lint:ts": "eslint src test", "lint:types": "tsc --noEmit", "lint:fix": "eslint src test --fix", "lint:workflows": "find .github/workflows -type f \\( -iname '*.yaml' -o -iname '*.yml' \\) | xargs -I {} sh -c 'echo \"Linting {}\"; action-validator \"{}\"'", "prettier:check": "prettier -c .", "prettier:format": "prettier -w .", "test": "jest" }, "files": [ "src", "lib", "dist", "package.json", "README.md", "LICENSE", "CONTRIBUTING.rst" ], "devDependencies": { "@action-validator/cli": "^0.6.0", "@action-validator/core": "^0.6.0", "@babel/cli": "^7.11.6", "@babel/core": "^7.11.6", "@babel/eslint-parser": "^7.25.9", "@babel/eslint-plugin": "^7.25.9", "@babel/plugin-proposal-class-properties": "^7.10.4", "@babel/preset-env": "^7.11.5", "@babel/preset-typescript": "^7.10.4", "@casualbot/jest-sonar-reporter": "^2.2.7", "@stylistic/eslint-plugin": "^5.0.0", "@testing-library/dom": "^8.0.0", "@types/jest": "^29.5.12", "@types/node": "^24", "@typescript-eslint/eslint-plugin": "^8.46.2", "@typescript-eslint/parser": "^8.46.2", "browserify": "^17.0.0", "eslint": "^8.57.1", "eslint-config-google": "^0.14.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-babel": "^5.3.1", "eslint-plugin-import": "^2.31.0", "eslint-plugin-matrix-org": "^2.0.0", "eslint-plugin-unicorn": "^56.0.0", "jest": "^29.5.0", "jest-environment-jsdom": "^29.5.0", "prettier": "3.4.2", "rimraf": "^3.0.2", "tinyify": "^3.0.0", "ts-node": "^10.9.1", "typescript": "^5.9.3" }, "dependencies": { "@types/events": "^3.0.0", "events": "^3.2.0" }, "@casualbot/jest-sonar-reporter": { "outputDirectory": "coverage", "outputName": "jest-sonar-report.xml", "relativePaths": true } }