{ "name": "telegram-t", "version": "1.61.28", "description": "", "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:mocked": "cross-env APP_ENV=test APP_MOCKED_CLIENT=1 webpack --mode development", "build:staging": "cross-env APP_ENV=staging webpack --mode development && ./deploy/copy_to_dist.sh", "build:production": "npm i && webpack && ./deploy/copy_to_dist.sh", "deploy:production": "npm run update_version && npm run build:production && git add -A && git commit -a -m '[Build]' --no-verify && git push", "postversion": "rm -rf .patch-version && npm run update_version", "update_version": "node ./deploy/update_version.js", "telegraph:update_changelog": "node ./dev/telegraphChangelog.js", "check": "tsc && stylelint \"**/*.{css,scss}\" && eslint . --ext .ts,.tsx,.js --ignore-pattern src/lib/gramjs", "check:fix": "npm run check -- --fix", "gramjs:tl": "node ./src/lib/gramjs/tl/generateModules.js", "gramjs:lint": "eslint src/lib/gramjs --ext .ts,.tsx,.js", "gramjs:lint:fix": "npm run gramjs:lint -- --fix", "test": "cross-env APP_ENV=test jest --verbose --silent --forceExit", "test:playwright": "playwright test", "test:record": "playwright codegen localhost:1235", "prepare": "husky install", "statoscope:validate-diff": "statoscope validate --input input.json --reference reference.json", "electron:dev": "npm run electron:webpack && IS_ELECTRON=true concurrently -n main,renderer,electron \"npm run electron:webpack -- --watch\" \"npm run dev\" \"electronmon dist/electron\"", "electron:webpack": "cross-env APP_ENV=$ENV webpack --config ./webpack-electron.config.ts", "electron:build": "cross-env IS_ELECTRON=true npm run build:$ENV && electron-builder install-app-deps && electron-rebuild && ENV=$ENV npm run electron:webpack", "electron:package:staging": "ENV=staging npm run electron:build && npx rimraf dist-electron && electron-builder build --win --mac --linux --config src/electron/config.yml", "electron:package:production": "ENV=production npm run electron:build && npx rimraf dist-electron && electron-builder build --win --mac --linux --config src/electron/config.yml", "electron:publish": "npm run electron:package:production -- -p always", "postinstall": "(cd dev/eslint-multitab && npm i)" }, "engines": { "node": "^18", "npm": "^9" }, "husky": { "hooks": { "pre-commit": "tsc && lint-staged" } }, "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.21.3", "@babel/plugin-proposal-class-properties": "^7.18.6", "@babel/plugin-proposal-logical-assignment-operators": "^7.20.7", "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6", "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", "@babel/preset-env": "^7.20.2", "@babel/preset-react": "^7.18.6", "@babel/preset-typescript": "^7.21.0", "@babel/register": "^7.21.0", "@electron/rebuild": "^3.2.10", "@glen/jest-raw-loader": "^2.0.0", "@playwright/test": "^1.31.2", "@statoscope/cli": "^5.26.1", "@statoscope/webpack-plugin": "^5.25.1", "@testing-library/jest-dom": "^5.16.5", "@types/croppie": "^2.6.1", "@types/hast": "^2.3.4", "@types/jest": "^29.5.0", "@types/react": "^18.0.28", "@types/react-dom": "^18.0.11", "@types/webpack": "^5.28.1", "@types/webpack-dev-server": "^4.7.2", "@typescript-eslint/eslint-plugin": "^5.55.0", "@typescript-eslint/parser": "^5.55.0", "@webpack-cli/serve": "^2.0.1", "autoprefixer": "^10.4.14", "babel-loader": "^9.1.2", "babel-plugin-transform-import-meta": "^2.2.0", "browserlist": "^1.0.1", "buffer": "^6.0.3", "concurrently": "^7.6.0", "cross-env": "^7.0.3", "css-loader": "^6.7.3", "dotenv": "^16.0.3", "electron": "^22.0.0", "electron-builder": "^23.6.0", "electron-builder-notarize": "^1.5.1", "electron-updater": "^5.3.0", "electron-window-state": "^5.0.3", "electronmon": "^2.0.2", "eslint": "^8.36.0", "eslint-config-airbnb": "^19.0.4", "eslint-config-airbnb-typescript": "^17.0.0", "eslint-config-react-app": "^7.0.1", "eslint-import-resolver-webpack": "^0.13.2", "eslint-plugin-eslint-multitab-tt": "file:dev/eslint-multitab", "eslint-plugin-flowtype": "^8.0.3", "eslint-plugin-import": "^2.27.5", "eslint-plugin-jsx-a11y": "^6.7.1", "eslint-plugin-jsx-expressions": "^1.3.1", "eslint-plugin-no-async-without-await": "^1.2.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-react": "^7.32.2", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-hooks-static-deps": "^1.0.7", "eslint-plugin-teactn": "git+https://github.com/korenskoy/eslint-plugin-teactn#c2c39dd005d58c07c24c4361de804dce1c6261b5", "git-revision-webpack-plugin": "^5.0.0", "gitlog": "^4.0.4", "html-webpack-plugin": "^5.5.0", "husky": "^8.0.3", "jest": "^29.5.0", "jest-environment-jsdom": "^29.5.0", "lint-staged": "^13.2.0", "mini-css-extract-plugin": "^2.7.5", "postcss-loader": "^7.1.0", "postcss-modules": "^6.0.0", "react": "^18.2.0", "sass": "^1.59.3", "sass-loader": "^13.2.1", "script-loader": "^0.7.2", "serve": "^14.2.0", "style-loader": "^3.3.2", "stylelint": "^14.16.1", "stylelint-config-recommended-scss": "^8.0.0", "stylelint-declaration-block-no-ignored-properties": "^2.7.0", "stylelint-group-selectors": "^1.0.9", "stylelint-high-performance-animation": "^1.8.0", "stylelint-selector-tag-no-without-class": "^2.0.5", "telegraph-node": "^1.0.4", "typescript": "^5.0.2", "webpack": "^5.76.2", "webpack-dev-server": "^4.13.1", "whatwg-fetch": "^3.6.2" }, "dependencies": { "@cryptography/aes": "^0.1.1", "async-mutex": "^0.4.0", "big-integer": "github:painor/BigInteger.js", "croppie": "^2.6.5", "emoji-data-ios": "git+https://github.com/korenskoy/emoji-data-ios#2886b318eae174527c4bc9fcd321940ef3a85527", "idb-keyval": "^6.2.0", "lowlight": "^2.8.1", "mp4box": "^0.5.2", "opus-recorder": "github:Ajaxy/opus-recorder", "os-browserify": "^0.3.0", "pako": "^2.1.0", "path-browserify": "^1.0.1", "qr-code-styling": "github:zubiden/qr-code-styling#dbbfed0", "v8-compile-cache": "^2.3.0" }, "optionalDependencies": { "fsevents": "2.3.2" } }