Files
trezor-suite/package.json
Daniel Suchý e346ba7f61 chore: upgrade to TS 5.8 (#17537)
* chore: upgrade to TS 5.6

* chore: upgrade to TS 5.7

* feat: upgate to TS 5.8

* chore: update eslint

* fix: use es2023 also for build
2025-03-12 13:32:41 +01:00

163 lines
7.6 KiB
JSON

{
"name": "trezor-suite",
"version": "1.0.0",
"private": true,
"repository": "https://github.com/trezor/trezor-suite.git",
"license": "SEE LICENSE IN LICENSE.md",
"engines": {
"node": "22",
"yarn": ">=4"
},
"workspaces": {
"packages": [
"packages/*",
"packages/connect-examples/*",
"suite-native/*",
"suite-common/*",
"scripts"
]
},
"scripts": {
"_______ Hooks _______": "Yarn hooks.",
"postinstall": "yarn run patch-package && husky",
"_______ Library Scripts #####": "Some libraries have their own build scripts.",
"build:libs": "yarn nx run-many --skip-nx-cache --target=build:lib",
"suite:build:web": "yarn workspace @trezor/suite-web build",
"_______ Start Scripts _______": "Here are standalone scripts for running individual applications for development.",
"suite:dev": "yarn workspace @trezor/suite-web dev",
"suite:dev:vite": "yarn workspace @trezor/suite-web dev:vite",
"suite:dev:desktop": "yarn workspace @trezor/suite-desktop dev",
"native:start": "yarn workspace @suite-native/app start",
"_______ Testing _______": "Testing, linting, type checking...",
"type-check": "yarn nx run-many --target=type-check",
"type-check:force": "rimraf -rf -- **/libDev && yarn type-check",
"test:unit": "yarn nx run-many --target=test:unit",
"lint:js": "eslint . --cache --cache-strategy content --flag unstable_config_lookup_from_file --max-warnings 0",
"lint:js:fix-files": "eslint --cache --cache-strategy content --flag unstable_config_lookup_from_file --max-warnings 0 --fix",
"lint:styles": "yarn nx run-many --target=lint:styles",
"lint": "yarn lint:styles && yarn lint:js",
"lint:shellcheck": "./scripts/shellcheck.sh",
"_______ Global Scripts _______": "Shared scripts for running in all workspaces",
"g:eslint": "cd $INIT_CWD && eslint . --cache --cache-strategy content --flag unstable_config_lookup_from_file --max-warnings 0",
"g:jest": "cd $INIT_CWD && jest",
"g:prettier": "cd $INIT_CWD && prettier",
"g:rimraf": "cd $INIT_CWD && rimraf",
"g:tsc": "cd $INIT_CWD && tsc",
"g:tsx": "cd $INIT_CWD && tsx",
"g:depcheck": "cd $INIT_CWD && depcheck",
"_______ Nx testing _______": "Nx wrapped commands for testing, linting, type checking...",
"nx:build:libs": "yarn nx affected --target=build:lib",
"nx:type-check": "yarn nx affected --target=type-check",
"nx:test-unit": "yarn nx affected --target=test:unit",
"nx:lint:styles": "yarn nx affected --target=lint:styles",
"nx:format": "yarn nx format:check",
"_______ Commands _______": "Useful commands and scripts.",
"patch": "yarn patch-package",
"convert-figma-palette": "yarn tsx ./scripts/convertFigmaPalette.ts",
"update-project-references": "yarn tsx ./scripts/updateProjectReferences.ts",
"verify-project-references": "yarn update-project-references --test",
"check-workspace-resolutions": "yarn tsx ./scripts/check-workspace-resolutions.ts",
"generate-package": "yarn workspace @trezor/scripts generate-package",
"deps": "rimraf **/node_modules && yarn",
"depcheck": "yarn nx affected --target=depcheck",
"list-outdated": "./scripts/list-outdated-dependencies/list-outdated-dependencies.sh",
"message-system-sign-config": "yarn workspace @suite-common/message-system sign-config",
"format": "yarn nx format:write",
"format:all": "yarn prettier --write \"**/*.{js,ts,tsx,mdx,md,html,json,yml,yaml}\"",
"format:verify": "yarn prettier --check \"**/*.{js,ts,tsx,mdx,md,html,json}\"",
"update-submodules": "./scripts/update-submodules.sh",
"update-coins": "./scripts/update-coins.sh",
"update-models": "./scripts/update-models.sh",
"update-protobuf": "./scripts/update-protobuf.sh",
"update-coinjoin-middleware": "yarn workspace @trezor/suite-data update-coinjoin-middleware",
"prepare-desktop-release": "./scripts/prepare-desktop-release.sh",
"prepare-mobile-release": "./scripts/prepare-mobile-release.sh",
"native:android": "yarn workspace @suite-native/app android",
"native:ios": "yarn workspace @suite-native/app ios",
"native:prebuild": "yarn workspace @suite-native/app prebuild",
"native:prebuild:clean": "yarn workspace @suite-native/app prebuild:clean",
"native:adhoc": "yarn workspace @suite-native/app build:adhoc",
"native:reverse-ports": "yarn workspace @suite-native/app reverse-ports",
"_______ Aliases _______": "Aliases for longer commands which we often have to run manually. Names don't have to be pretty or make total sense.",
"refs": "yarn update-project-references",
"types": "yarn type-check",
"messages": "yarn message-system-sign-config",
"validate": "yarn verify-project-references && yarn lint:js && yarn nx:lint:styles && yarn nx:build:libs && yarn nx:type-check && yarn nx:test-unit && yarn check-workspace-resolutions && yarn depcheck",
"a": "yarn native:android",
"ios": "yarn native:ios",
"p": "yarn native:prebuild",
"ports": "yarn native:reverse-ports",
"s": "yarn native:start"
},
"resolutions": {
"typescript": "5.8.2",
"react-native": "0.76.1",
"prettier": "3.2.5",
"type-fest": "4.24.0",
"bcrypto": "5.4.0",
"react": "18.2.0",
"electron": "35.0.1",
"@types/node": "22.13.10",
"@types/react": "18.2.55",
"bn.js": "5.2.1",
"node-gyp": "10.2.0",
"reselect": "5.1.1",
"### We need promise to be same version in mobile unless it produces undefined behavior, check PR #15815": "1.0.0",
"promise": "8.3.0",
"@everstake/wallet-sdk-solana/@solana/web3.js@npm:2.0.0": "npm:@solana/kit@^2"
},
"devDependencies": {
"@babel/cli": "^7.23.9",
"@babel/core": "^7.23.9",
"@babel/node": "^7.23.9",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-decorators": "^7.23.9",
"@babel/plugin-transform-runtime": "^7.23.9",
"@babel/preset-env": "^7.23.9",
"@babel/preset-react": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@babel/runtime": "^7.23.9",
"@suite-common/wallet-types": "workspace:*",
"@trezor/eslint": "workspace:*",
"@types/jest": "29.5.12",
"@types/node": "22.13.10",
"@types/prettier": "^3.0.0",
"@types/semver": "^7.5.6",
"@types/tar": "^6.1.11",
"babel-jest": "29.7.0",
"depcheck": "^1.4.7",
"eslint": "^9.22.0",
"globals": "^15.11.0",
"husky": "^9.1.7",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"jest-expo": "^52.0.1",
"metro-react-native-babel-preset": "0.77.0",
"node-fetch": "^2.6.4",
"nx": "^18.0.3",
"patch-package": "8.0.0",
"prettier": "^3.3.2",
"rimraf": "^6.0.1",
"semver": "^7.6.3",
"tar": "^7.0.1",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"tslib": "^2.6.2",
"tsx": "^4.19.3",
"typescript": "5.8.2",
"version-bump-prompt": "^6.1.0"
},
"dependenciesMeta": {
"core-js-pure": {
"built": false
},
"electron": {
"built": true
},
"trezor-suite": {
"built": true
}
},
"packageManager": "yarn@4.5.3"
}