mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-15 11:49:57 +01:00
133 lines
5.8 KiB
JSON
133 lines
5.8 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": "16",
|
|
"yarn": ">=3"
|
|
},
|
|
"workspaces": {
|
|
"packages": [
|
|
"packages/*",
|
|
"suite-native/*",
|
|
"suite-common/*",
|
|
"scripts"
|
|
]
|
|
},
|
|
"scripts": {
|
|
"_______ Hooks _______": "Yarn hooks.",
|
|
"postinstall-legacy": "yarn run patch-package",
|
|
"_______ Library Scripts #####": "Some libraries have their own build scripts.",
|
|
"build:libs": "lerna run 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:ios": "yarn workspace @trezor/suite-native dev:ios",
|
|
"suite:dev:android": "yarn workspace @trezor/suite-native dev:android",
|
|
"suite:dev:desktop": "yarn workspace @trezor/suite-desktop dev",
|
|
"_______ Testing _______": "Testing, linting, type checking...",
|
|
"type-check": "yarn lerna run type-check",
|
|
"type-check:force": "rimraf -rf -- **/libDev && yarn type-check",
|
|
"test:unit": "yarn lerna run test:unit",
|
|
"lint:js": "yarn lerna run lint:js",
|
|
"lint": "yarn lerna run lint:styles && yarn lint:js",
|
|
"lint-staged": "npx lint-staged",
|
|
"lint:shellcheck": "./scripts/shellcheck.sh",
|
|
"_______ Global Scripts _______": "Shared scripts for running in all workspaces",
|
|
"g:eslint": "cd $INIT_CWD && eslint --report-unused-disable-directives --cache --ignore-path ../../.gitignore",
|
|
"_______ 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:js": "yarn nx affected --target=lint:js",
|
|
"nx:lint:styles": "yarn nx affected --target=lint:styles",
|
|
"_______ Commands _______": "Useful commands and scripts.",
|
|
"patch": "yarn patch-package",
|
|
"update-project-references": "yarn tsx ./scripts/updateProjectReferences.js",
|
|
"verify-project-references": "yarn update-project-references --test",
|
|
"generate-package": "yarn tsx ./scripts/generatePackage.js",
|
|
"deps": "rimraf 'node_modules' '*/**/node_modules' && yarn",
|
|
"msg-system-sign-config": "yarn workspace @trezor/message-system sign-config",
|
|
"format": "yarn prettier --write \"**/*.{js,ts,tsx,mdx,md,html,json}\"",
|
|
"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-protobuf": "yarn workspace @trezor/transport update:protobuf",
|
|
"_______ 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 msg-system-sign-config",
|
|
"validate": "yarn verify-project-references && yarn nx:lint:js && yarn nx:lint:styles && yarn nx:build:libs && yarn nx:type-check && yarn nx:test-unit"
|
|
},
|
|
"lint-staged": {
|
|
"packages/**/*.{ts,tsx}": [
|
|
"eslint --fix",
|
|
"git add"
|
|
],
|
|
"packages/{components,suite}/**/*.{ts,tsx}": [
|
|
"stylelit --fix",
|
|
"git add"
|
|
]
|
|
},
|
|
"resolutions": {
|
|
"@types/react-native": "0.70.3",
|
|
"typescript": "4.7.4",
|
|
"react-native": "0.70.3",
|
|
"prettier": "2.7.1",
|
|
"type-fest": "2.12.2",
|
|
"bcrypto": "5.4.0",
|
|
"react": "18.2.0",
|
|
"electron": "18.3.5"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.18.10",
|
|
"@babel/core": "^7.18.10",
|
|
"@babel/node": "^7.18.10",
|
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
"@babel/plugin-transform-runtime": "^7.18.10",
|
|
"@babel/preset-env": "^7.18.10",
|
|
"@babel/preset-react": "^7.18.6",
|
|
"@babel/preset-typescript": "^7.18.6",
|
|
"@babel/runtime": "^7.18.9",
|
|
"@nrwl/nx-cloud": "14.5.1",
|
|
"@suite-common/wallet-types": "*",
|
|
"@types/jest": "^26.0.24",
|
|
"@types/node": "^16.11.49",
|
|
"@types/prettier": "^2.7.0",
|
|
"@typescript-eslint/eslint-plugin": "^5.33.1",
|
|
"@typescript-eslint/parser": "^5.33.1",
|
|
"babel-jest": "^26.6.3",
|
|
"eslint": "^8.22.0",
|
|
"eslint-config-airbnb": "^18.2.1",
|
|
"eslint-config-prettier": "^8.5.0",
|
|
"eslint-import-resolver-typescript": "^3.4.1",
|
|
"eslint-plugin-cypress": "^2.12.1",
|
|
"eslint-plugin-import": "^2.26.0",
|
|
"eslint-plugin-jest": "^26.8.3",
|
|
"eslint-plugin-jsx-a11y": "^6.6.1",
|
|
"eslint-plugin-prettier": "^4.2.1",
|
|
"eslint-plugin-react": "^7.31.8",
|
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
"jest": "^26.6.3",
|
|
"lerna": "^3.20.2",
|
|
"metro-react-native-babel-preset": "^0.72.3",
|
|
"npm-run-all": "^4.1.5",
|
|
"nx": "14.5.10",
|
|
"patch-package": "^6.4.7",
|
|
"postinstall-postinstall": "^2.1.0",
|
|
"prettier": "^2.7.1",
|
|
"prettier-eslint": "^15.0.1",
|
|
"rimraf": "^3.0.2",
|
|
"semver": "^7.3.7",
|
|
"ts-jest": "^26.5.6",
|
|
"ts-node": "^10.9.1",
|
|
"tsconfig-paths": "^4.1.0",
|
|
"tsx": "^3.8.2",
|
|
"typescript": "4.7.4",
|
|
"version-bump-prompt": "^6.1.0"
|
|
},
|
|
"packageManager": "yarn@3.2.2"
|
|
}
|