2019-12-06 18:20:31 +00:00
{
2023-05-12 08:52:48 +00:00
"name" : "element-desktop" ,
"productName" : "Element" ,
"main" : "lib/electron-main.js" ,
2024-02-13 15:15:15 +00:00
"version" : "1.11.58" ,
2023-05-12 08:52:48 +00:00
"description" : "A feature-rich client for Matrix.org" ,
"author" : "Element" ,
2023-05-15 08:40:39 +00:00
"homepage" : "https://element.io" ,
2023-05-12 08:52:48 +00:00
"repository" : {
"type" : "git" ,
"url" : "https://github.com/vector-im/element-desktop"
2019-12-06 18:20:31 +00:00
} ,
2023-05-12 08:52:48 +00:00
"license" : "Apache-2.0" ,
"files" : [ ] ,
"engines" : {
2024-01-18 10:10:51 +00:00
"node" : ">=18.0.0"
2019-12-06 18:20:31 +00:00
} ,
2023-05-12 08:52:48 +00:00
"scripts" : {
2023-09-05 16:09:47 +00:00
"i18n" : "matrix-gen-i18n && yarn i18n:sort && yarn i18n:lint" ,
"i18n:sort" : "jq --sort-keys '.' src/i18n/strings/en_EN.json > src/i18n/strings/en_EN.json.tmp && mv src/i18n/strings/en_EN.json.tmp src/i18n/strings/en_EN.json" ,
2024-01-02 18:12:16 +00:00
"i18n:lint" : "prettier --log-level=silent --write src/i18n/strings/ --ignore-path /dev/null" ,
2023-09-05 16:09:47 +00:00
"i18n:diff" : "cp src/i18n/strings/en_EN.json src/i18n/strings/en_EN_orig.json && yarn i18n && matrix-compare-i18n-files src/i18n/strings/en_EN_orig.json src/i18n/strings/en_EN.json" ,
2023-05-12 08:52:48 +00:00
"mkdirs" : "mkdirp packages deploys" ,
"fetch" : "yarn run mkdirs && ts-node scripts/fetch-package.ts" ,
"asar-webapp" : "asar p webapp webapp.asar" ,
"start" : "yarn run build:ts && yarn run build:res && electron ." ,
2023-11-22 15:13:47 +00:00
"lint" : "yarn lint:types && yarn lint:js && yarn lint:workflows" ,
2024-01-02 18:12:16 +00:00
"lint:js" : "yarn lint:js:src && yarn lint:js:test && yarn lint:js:scripts && yarn lint:js:hak && prettier --check ." ,
2023-05-12 08:52:48 +00:00
"lint:js:src" : "eslint --max-warnings 0 src" ,
2024-01-11 18:49:20 +00:00
"lint:js:test" : "eslint --max-warnings 0 --config .eslintrc-test.js playwright" ,
2023-05-12 08:52:48 +00:00
"lint:js:scripts" : "eslint --max-warnings 0 --config .eslintrc-scripts.js scripts" ,
"lint:js:hak" : "eslint --max-warnings 0 --config .eslintrc-hak.js hak" ,
2024-01-02 18:12:16 +00:00
"lint:js-fix" : "yarn lint:js-fix:src &&yarn lint:js-fix:test && yarn lint:js-fix:scripts && yarn lint:js-fix:hak && prettier --log-level=warn --write ." ,
2023-05-12 08:52:48 +00:00
"lint:js-fix:src" : "eslint --fix --max-warnings 0 src" ,
2024-01-11 18:49:20 +00:00
"lint:js-fix:test" : "eslint --fix --max-warnings 0 --config .eslintrc-test.js playwright" ,
2023-05-12 08:52:48 +00:00
"lint:js-fix:scripts" : "eslint --fix --max-warnings 0 --config .eslintrc-scripts.js scripts" ,
"lint:js-fix:hak" : "eslint --fix --max-warnings 0 --config .eslintrc-hak.js hak" ,
"lint:types" : "yarn lint:types:src && yarn lint:types:test && yarn lint:types:scripts && yarn lint:types:hak" ,
"lint:types:src" : "tsc --noEmit" ,
2024-01-11 18:49:20 +00:00
"lint:types:test" : "tsc --noEmit -p playwright/tsconfig.json" ,
2023-05-12 08:52:48 +00:00
"lint:types:scripts" : "tsc --noEmit -p scripts/tsconfig.json" ,
"lint:types:hak" : "tsc --noEmit -p hak/tsconfig.json" ,
2023-11-22 15:13:47 +00:00
"lint:workflows" : "find .github/workflows -type f \\( -iname '*.yaml' -o -iname '*.yml' \\) | xargs -I {} sh -c 'echo \"Linting {}\"; action-validator \"{}\"'" ,
2024-01-18 10:10:51 +00:00
"lint:knip" : "knip" ,
2023-05-12 08:52:48 +00:00
"build:native" : "yarn run hak" ,
"build:native:universal" : "yarn run hak --target x86_64-apple-darwin fetchandbuild && yarn run hak --target aarch64-apple-darwin fetchandbuild && yarn run hak --target x86_64-apple-darwin --target aarch64-apple-darwin copyandlink" ,
"build:32" : "yarn run build:ts && yarn run build:res && electron-builder --ia32" ,
"build:64" : "yarn run build:ts && yarn run build:res && electron-builder --x64" ,
"build:universal" : "yarn run build:ts && yarn run build:res && electron-builder --universal" ,
"build" : "yarn run build:ts && yarn run build:res && electron-builder" ,
"build:ts" : "tsc" ,
"build:res" : "ts-node scripts/copy-res.ts" ,
2024-01-02 17:39:20 +00:00
"docker:setup" : "docker build --platform linux/amd64 -t element-desktop-dockerbuild dockerbuild" ,
2023-05-12 08:52:48 +00:00
"docker:build:native" : "scripts/in-docker.sh yarn run hak" ,
"docker:build" : "scripts/in-docker.sh yarn run build" ,
"docker:install" : "scripts/in-docker.sh yarn install" ,
"clean" : "rimraf webapp.asar dist packages deploys lib" ,
"hak" : "ts-node scripts/hak/index.ts" ,
2024-01-11 18:49:20 +00:00
"test" : "playwright test" ,
"test:open" : "yarn test --ui" ,
"test:screenshots:build" : "docker build playwright -t element-desktop-playwright --platform linux/amd64" ,
"test:screenshots:run" : "docker run --rm --network host -v $(pwd):/work/element-desktop -v /var/run/docker.sock:/var/run/docker.sock --platform linux/amd64 -it element-desktop-playwright"
2019-12-06 18:20:31 +00:00
} ,
2023-05-12 08:52:48 +00:00
"dependencies" : {
"@sentry/electron" : "^4.3.0" ,
"auto-launch" : "^5.0.5" ,
"counterpart" : "^0.18.6" ,
"electron-clear-data" : "^1.0.5" ,
"electron-store" : "^8.0.2" ,
"electron-window-state" : "^5.0.3" ,
"minimist" : "^1.2.6" ,
"node-fetch" : "^2" ,
2023-07-11 16:00:24 +00:00
"png-to-ico" : "^2.1.1" ,
"uuid" : "^9.0.0"
2019-12-10 16:04:16 +00:00
} ,
2023-05-12 08:52:48 +00:00
"devDependencies" : {
2023-11-22 15:13:47 +00:00
"@action-validator/cli" : "^0.5.3" ,
"@action-validator/core" : "^0.5.3" ,
2023-05-12 08:52:48 +00:00
"@babel/core" : "^7.18.10" ,
"@babel/preset-env" : "^7.18.10" ,
"@babel/preset-typescript" : "^7.18.6" ,
"@electron/asar" : "^3.2.3" ,
2024-01-09 18:14:48 +00:00
"@electron/fuses" : "^1.7.0" ,
2024-01-23 21:17:59 +00:00
"@playwright/test" : "1.41.1" ,
2023-05-12 08:52:48 +00:00
"@types/auto-launch" : "^5.0.1" ,
"@types/counterpart" : "^0.18.1" ,
"@types/minimist" : "^1.2.1" ,
"@types/mkdirp" : "^1.0.2" ,
2024-01-18 10:10:51 +00:00
"@types/node" : "18.19.8" ,
2023-05-12 08:52:48 +00:00
"@types/pacote" : "^11.1.1" ,
"@types/tar" : "^6.1.3" ,
2023-07-11 16:00:24 +00:00
"@types/uuid" : "^9.0.2" ,
2024-01-02 17:37:13 +00:00
"@typescript-eslint/eslint-plugin" : "^6.0.0" ,
"@typescript-eslint/parser" : "^6.0.0" ,
2024-01-10 01:10:48 +00:00
"app-builder-lib" : "24.11.0" ,
2023-05-12 08:52:48 +00:00
"chokidar" : "^3.5.2" ,
2024-01-02 18:15:58 +00:00
"detect-libc" : "^2.0.0" ,
2023-12-13 13:22:47 +00:00
"electron" : "^28.0.0" ,
2023-11-28 18:30:05 +00:00
"electron-builder" : "24.9.1" ,
2024-01-10 01:10:48 +00:00
"electron-builder-squirrel-windows" : "24.11.0" ,
2023-05-12 08:52:48 +00:00
"electron-devtools-installer" : "^3.2.0" ,
"eslint" : "^8.26.0" ,
"eslint-config-google" : "^0.14.0" ,
2023-08-08 16:13:56 +00:00
"eslint-config-prettier" : "^9.0.0" ,
2023-05-12 08:52:48 +00:00
"eslint-plugin-import" : "^2.25.4" ,
"eslint-plugin-matrix-org" : "^1.0.0" ,
2024-01-10 00:47:51 +00:00
"eslint-plugin-unicorn" : "^50.0.0" ,
2023-05-12 08:52:48 +00:00
"find-npm-prefix" : "^1.0.2" ,
"glob" : "^10.0.0" ,
2024-01-18 10:10:51 +00:00
"knip" : "^4.0.1" ,
2023-10-03 14:03:02 +00:00
"matrix-web-i18n" : "^3.1.3" ,
2023-05-12 08:52:48 +00:00
"mkdirp" : "^3.0.0" ,
"node-pre-gyp" : "^0.17.0" ,
2023-09-05 20:23:00 +00:00
"pacote" : "^17.0.0" ,
2024-01-02 18:12:16 +00:00
"prettier" : "^3.0.0" ,
2023-05-12 08:52:48 +00:00
"rimraf" : "^5.0.0" ,
"tar" : "^6.1.2" ,
"ts-node" : "^10.9.1" ,
2024-01-18 10:10:51 +00:00
"typescript" : "5.3.3"
2023-05-12 08:52:48 +00:00
} ,
"hakDependencies" : {
2023-05-16 11:23:42 +00:00
"matrix-seshat" : "^3.0.1" ,
2023-05-12 08:52:48 +00:00
"keytar" : "^7.9.0"
} ,
"resolutions" : {
2024-01-18 10:10:51 +00:00
"@types/node" : "18.19.8"
2023-05-12 08:52:48 +00:00
}
2019-12-06 18:20:31 +00:00
}