mirror of
https://github.com/vector-im/element-web.git
synced 2026-06-19 23:19:41 +00:00
2f4e6a4ec4
* Use vitest for some EW unit tests * Ensure library builds are done before unit tests * Stabilise jest tests * Move more tests over * Make sonar happier * Update types/node for happy-dom compat again * Decrease max-workers to stabilise jest tests * Split jest over 3 runners to alleviate memory woes * Switch jest to runInBand * Attempt to deflake jest tests * tweak coverage * tweak coverage
65 lines
2.5 KiB
JSON
65 lines
2.5 KiB
JSON
{
|
|
"name": "element-web-monorepo",
|
|
"version": "0.0.0",
|
|
"description": "Element: the future of secure communication",
|
|
"author": "New Vector Ltd.",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/element-hq/element-web"
|
|
},
|
|
"license": "SEE LICENSE IN README.md",
|
|
"type": "module",
|
|
"scripts": {
|
|
"i18n": "pnpm -r i18n",
|
|
"i18n:sort": "pnpm -r i18n:sort",
|
|
"i18n:lint": "pnpm -r i18n:lint",
|
|
"lint": "pnpm -r --workspace-concurrency=1 lint:types && pnpm lint:prettier && pnpm -r lint:js && pnpm -r lint:style && pnpm lint:workflows && pnpm lint:knip",
|
|
"lint:prettier": "prettier --check .",
|
|
"lint:prettier-fix": "prettier --log-level=warn --write .",
|
|
"lint:workflows": "find .github/workflows -type f \\( -iname '*.yaml' -o -iname '*.yml' \\) -print -exec action-validator {} ';'",
|
|
"lint:knip": "knip",
|
|
"install:git-hooks": "husky",
|
|
"postinstall": "node scripts/pnpm-link.ts && pnpm run -r sane-postinstall",
|
|
"docs:dev": "vitepress dev docs",
|
|
"docs:build": "vitepress build docs",
|
|
"docs:preview": "vitepress preview docs",
|
|
"test:unit": "nx run-many -t test:unit:prepare -p && vitest run",
|
|
"coverage:diff": "diff-cover --config-file diff-cover.toml apps/web/coverage/lcov.info packages/shared-components/coverage/lcov.info coverage/lcov.info"
|
|
},
|
|
"devDependencies": {
|
|
"@action-validator/cli": "^0.6.0",
|
|
"@action-validator/core": "^0.6.0",
|
|
"@nx-tools/nx-container": "^7.2.1",
|
|
"@playwright/test": "catalog:",
|
|
"@types/node": "22",
|
|
"@vitest/coverage-v8": "catalog:",
|
|
"cronstrue": "^3.0.0",
|
|
"eslint-plugin-matrix-org": "^3.0.0",
|
|
"husky": "^9.0.0",
|
|
"knip": "6.16.0",
|
|
"lint-staged": "^17.0.0",
|
|
"lodash": "^4.17.21",
|
|
"mermaid": "^11.13.0",
|
|
"minimist": "^1.2.6",
|
|
"nx": "22.7.5",
|
|
"prettier": "3.8.3",
|
|
"typescript": "catalog:",
|
|
"vitest": "catalog:",
|
|
"vitepress": "^1.6.4",
|
|
"vitepress-plugin-mermaid": "^2.0.17",
|
|
"yaml": "^2.3.3"
|
|
},
|
|
"engines": {
|
|
"node": ">=22.18"
|
|
},
|
|
"devEngines": {
|
|
"packageManager": {
|
|
"name": "pnpm",
|
|
"version": "11.2.2+sha512.36e6621fad506178936455e70247b8808ef4ec25797a9f437a93281a020484e2607f6a469a22e982987c3dbb8866e3071514ab10a4a1749e06edcd1ec118436f",
|
|
"onFail": "error"
|
|
}
|
|
},
|
|
"private": true,
|
|
"nx": {}
|
|
}
|