157 lines
6.7 KiB
JSON
157 lines
6.7 KiB
JSON
{
|
|
"name": "telegram-t",
|
|
"version": "10.9.52",
|
|
"description": "",
|
|
"type": "module",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"dev": "cross-env APP_ENV=development webpack serve --mode development",
|
|
"dev:mocked": "cross-env APP_ENV=test APP_MOCKED_CLIENT=1 webpack serve --mode development --port 1235",
|
|
"build:dev": "webpack --mode development && bash ./deploy/copy_to_dist.sh",
|
|
"build:staging": "cross-env APP_ENV=staging npm run build:dev",
|
|
"build:mocked": "cross-env APP_ENV=test APP_MOCKED_CLIENT=1 npm run build:dev",
|
|
"build:production": "webpack && bash ./deploy/copy_to_dist.sh",
|
|
"web:release:production": "npm i && npm run build:production && git add -A && git commit -a -m '[Build]' --no-verify && git push",
|
|
"electron:dev": "npm run electron:webpack && IS_PACKAGED_ELECTRON=true concurrently --ks SIGKILL -n main,renderer,electron \"npm run electron:webpack -- --watch\" \"npm run dev\" \"electronmon dist/electron.cjs\"",
|
|
"electron:webpack": "cross-env APP_ENV=$ENV webpack --config ./webpack-electron.config.ts",
|
|
"electron:build": "IS_PACKAGED_ELECTRON=true npm run build:$ENV && electron-builder install-app-deps && ENV=$ENV npm run electron:webpack",
|
|
"electron:package": "npm run electron:build && npx rimraf dist-electron && electron-builder build --win --mac --linux --config src/electron/config.js",
|
|
"electron:package:staging": "ENV=staging npm run electron:package -- -p never",
|
|
"electron:release:production": "ENV=production npm run electron:package -- -p always",
|
|
"telegraph:update_changelog": "node ./dev/telegraphChangelog.js",
|
|
"check": "tsc && stylelint \"**/*.{css,scss}\" && eslint",
|
|
"check:fix": "stylelint \"**/*.{css,scss}\" --fix && eslint --fix",
|
|
"tl:rehash": "node ./dev/tlHash.js",
|
|
"gramjs:tl": "tsx ./src/lib/gramjs/tl/generateModules.ts",
|
|
"lang:ts": "tsx ./dev/generateLangTypes.js",
|
|
"lang:initial": "tsx ./dev/generateInitialLangFallback.js",
|
|
"icons:build": "fantasticon -c .fantasticonrc.cjs",
|
|
"test": "cross-env APP_ENV=test jest --verbose --silent --forceExit",
|
|
"test:playwright": "playwright test",
|
|
"test:record": "playwright codegen localhost:1235",
|
|
"statoscope:validate-diff": "statoscope validate --input input.json --reference reference.json",
|
|
"postversion": "echo $(node -p \"require('./package.json').version\") > public/version.txt && git commit --amend --no-verify --no-edit public/version.txt"
|
|
},
|
|
"engines": {
|
|
"node": "^22.6 || ^24",
|
|
"npm": "^10.8 || ^11"
|
|
},
|
|
"lint-staged": {
|
|
"*.{ts,tsx,js}": "eslint --fix",
|
|
"*.{css,scss}": "stylelint --fix"
|
|
},
|
|
"electronmon": {
|
|
"logLevel": "quiet"
|
|
},
|
|
"author": "Alexander Zinchuk (alexander@zinchuk.com)",
|
|
"license": "GPL-3.0-or-later",
|
|
"devDependencies": {
|
|
"@babel/core": "^7.27.1",
|
|
"@babel/preset-env": "^7.27.2",
|
|
"@babel/preset-react": "^7.27.1",
|
|
"@babel/preset-typescript": "^7.27.1",
|
|
"@babel/register": "^7.27.1",
|
|
"@eslint/js": "^9.27.0",
|
|
"@glen/jest-raw-loader": "^2.0.0",
|
|
"@playwright/test": "^1.52.0",
|
|
"@statoscope/cli": "5.29.0",
|
|
"@statoscope/webpack-plugin": "5.29.0",
|
|
"@stylistic/eslint-plugin": "^4.2.0",
|
|
"@stylistic/stylelint-config": "^2.0.0",
|
|
"@stylistic/stylelint-plugin": "^3.1.2",
|
|
"@testing-library/jest-dom": "^6.6.3",
|
|
"@twbs/fantasticon": "^3.1.0",
|
|
"@types/croppie": "^2.6.4",
|
|
"@types/dom-view-transitions": "^1.0.6",
|
|
"@types/hast": "^3.0.4",
|
|
"@types/jest": "^29.5.14",
|
|
"@types/node": "^22.15.21",
|
|
"@types/react": "^19.1.5",
|
|
"@types/react-dom": "^19.1.5",
|
|
"@types/webpack": "^5.28.5",
|
|
"@typescript-eslint/eslint-plugin": "^8.32.1",
|
|
"@typescript-eslint/parser": "^8.32.1",
|
|
"@webpack-cli/serve": "^3.0.1",
|
|
"autoprefixer": "^10.4.21",
|
|
"babel-loader": "^10.0.0",
|
|
"babel-plugin-transform-import-meta": "^2.3.2",
|
|
"bindings": "git+https://github.com/zubiden/node-bindings#1f689378b1cd26f99d3b7156fe40a520365d1272",
|
|
"browserlist": "^1.0.1",
|
|
"buffer": "^6.0.3",
|
|
"concurrently": "^9.1.2",
|
|
"copy-webpack-plugin": "^13.0.0",
|
|
"cross-env": "^7.0.3",
|
|
"css-loader": "^7.1.2",
|
|
"dotenv": "^16.5.0",
|
|
"electron": "^36.2.1",
|
|
"electron-builder": "^26.0.12",
|
|
"electron-conf": "^1.3.0",
|
|
"electron-context-menu": "^4.1.0",
|
|
"electron-drag-click": "git+https://github.com/zubiden/electron-drag-click#cf6918ddb648e13ebcf6cf1e7aa008258edc06ad",
|
|
"electron-updater": "^6.6.2",
|
|
"electronmon": "^2.0.3",
|
|
"eslint": "^9.27.0",
|
|
"eslint-plugin-import": "^2.31.0",
|
|
"eslint-plugin-jest": "^28.11.0",
|
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
"eslint-plugin-no-null": "^1.0.2",
|
|
"eslint-plugin-react": "^7.37.5",
|
|
"eslint-plugin-react-hooks-static-deps": "git+https://github.com/zubiden/eslint-plugin-react-hooks-static-deps#c16f35bf2e6e364cbc692c73cc350c1c5d46cc6e",
|
|
"eslint-plugin-react-x": "^1.49.0",
|
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
"eslint-plugin-tt-multitab": "git+https://github.com/zubiden/eslint-plugin-tt-multitab#15d542004d39ec7c29d50385484511bab0b77ea9",
|
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
"fake-indexeddb": "^6.0.1",
|
|
"git-revision-webpack-plugin": "^5.0.0",
|
|
"gitlog": "^5.1.0",
|
|
"html-webpack-plugin": "^5.6.3",
|
|
"husky": "^9.1.7",
|
|
"jest": "^29.7.0",
|
|
"jest-environment-jsdom": "^29.7.0",
|
|
"lint-staged": "^16.0.0",
|
|
"mini-css-extract-plugin": "^2.9.2",
|
|
"postcss-loader": "^8.1.1",
|
|
"postcss-modules": "^6.0.1",
|
|
"react": "^19.1.0",
|
|
"sass": "^1.89.0",
|
|
"sass-loader": "^16.0.5",
|
|
"script-loader": "^0.7.2",
|
|
"serve": "^14.2.4",
|
|
"stylelint": "^16.19.1",
|
|
"stylelint-config-clean-order": "^7.0.0",
|
|
"stylelint-config-recommended-scss": "^15.0.0",
|
|
"stylelint-declaration-block-no-ignored-properties": "^2.8.0",
|
|
"stylelint-group-selectors": "^1.0.10",
|
|
"stylelint-high-performance-animation": "^1.11.0",
|
|
"stylelint-selector-tag-no-without-class": "^3.0.1",
|
|
"telegraph-node": "^1.0.4",
|
|
"tsx": "^4.19.4",
|
|
"typescript": "^5.8.3",
|
|
"typescript-eslint": "^8.32.1",
|
|
"webpack": "^5.99.8",
|
|
"webpack-dev-server": "^5.2.1"
|
|
},
|
|
"dependencies": {
|
|
"@cryptography/aes": "^0.1.1",
|
|
"async-mutex": "^0.5.0",
|
|
"big-integer": "github:painor/BigInteger.js",
|
|
"croppie": "^2.6.5",
|
|
"emoji-data-ios": "git+https://github.com/korenskoy/emoji-data-ios#443f1c9d7b16a82e7ee53f7f226d7d9a9920a105",
|
|
"idb-keyval": "^6.2.2",
|
|
"lowlight": "^3.3.0",
|
|
"mp4box": "^0.5.4",
|
|
"opus-recorder": "github:Ajaxy/opus-recorder",
|
|
"os-browserify": "^0.3.0",
|
|
"pako": "^2.1.0",
|
|
"path-browserify": "^1.0.1",
|
|
"qr-code-styling": "^1.9.2"
|
|
},
|
|
"optionalDependencies": {
|
|
"dmg-license": "^1.0.11",
|
|
"fsevents": "^2.3.3"
|
|
},
|
|
"overrides": {
|
|
"bindings": "$bindings"
|
|
}
|
|
}
|