mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-02-20 00:33:07 +01:00
152 lines
6.6 KiB
JSON
152 lines
6.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": "18",
|
|
"yarn": ">=3"
|
|
},
|
|
"workspaces": {
|
|
"packages": [
|
|
"packages/*",
|
|
"suite-native/*",
|
|
"suite-common/*",
|
|
"scripts"
|
|
]
|
|
},
|
|
"scripts": {
|
|
"_______ Hooks _______": "Yarn hooks.",
|
|
"postinstall": "yarn run patch-package",
|
|
"_______ 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:desktop": "yarn workspace @trezor/suite-desktop dev",
|
|
"_______ 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": "yarn nx run-many --target=lint:js",
|
|
"lint:styles": "yarn nx run-many --target=lint:styles",
|
|
"lint": "yarn 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",
|
|
"g:jest": "cd $INIT_CWD && jest",
|
|
"g:rimraf": "cd $INIT_CWD && rimraf",
|
|
"g:tsc": "cd $INIT_CWD && tsc",
|
|
"_______ 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",
|
|
"check-workspace-resolutions": "yarn tsx ./scripts/check-workspace-resolutions.ts",
|
|
"generate-package": "yarn tsx ./scripts/generatePackage.js",
|
|
"deps": "rimraf 'node_modules' '*/**/node_modules' && yarn",
|
|
"message-system-sign-config": "yarn workspace @suite-common/message-system sign-config",
|
|
"format": "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": "yarn workspace @trezor/protobuf update:protobuf",
|
|
"update-coinjoin-middleware": "yarn workspace @trezor/suite-data update-coinjoin-middleware",
|
|
"prepare-release": "./scripts/prepare-release.sh",
|
|
"_______ 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 nx:lint:js && yarn nx:lint:styles && yarn nx:build:libs && yarn nx:type-check && yarn nx:test-unit && yarn check-workspace-resolutions"
|
|
},
|
|
"lint-staged": {
|
|
"packages/**/*.{ts,tsx}": [
|
|
"eslint --fix",
|
|
"git add"
|
|
],
|
|
"packages/{suite,suite-web,suite-desktop-ui,connect-explorer,connect-popup,connect-ui}/**/*.{ts,tsx}": [
|
|
"stylelint --fix",
|
|
"git add"
|
|
]
|
|
},
|
|
"resolutions": {
|
|
"typescript": "4.9.5",
|
|
"react-native": "0.71.8",
|
|
"prettier": "3.0.3",
|
|
"type-fest": "2.12.2",
|
|
"bcrypto": "5.4.0",
|
|
"react": "18.2.0",
|
|
"electron": "26.4.2",
|
|
"@jest/types": "27.5.1",
|
|
"webpack": "^5.89.0",
|
|
"css-loader": "^6.8.1",
|
|
"html-webpack-plugin": "^5.5.3",
|
|
"@types/node": "18.17.15",
|
|
"@sentry/types": "7.56.0",
|
|
"@types/react": "18.0.32"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.22.5",
|
|
"@babel/core": "^7.22.5",
|
|
"@babel/node": "^7.22.5",
|
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
"@babel/plugin-transform-runtime": "^7.22.5",
|
|
"@babel/preset-env": "^7.22.5",
|
|
"@babel/preset-react": "^7.22.5",
|
|
"@babel/preset-typescript": "^7.22.5",
|
|
"@babel/runtime": "^7.22.5",
|
|
"@suite-common/wallet-types": "workspace:*",
|
|
"@types/jest": "^26.0.24",
|
|
"@types/node": "18.17.15",
|
|
"@types/prettier": "^2.7.3",
|
|
"@types/semver": "^7.5.0",
|
|
"@typescript-eslint/eslint-plugin": "^5.60.0",
|
|
"@typescript-eslint/parser": "^5.60.0",
|
|
"babel-jest": "^26.6.3",
|
|
"eslint": "^8.43.0",
|
|
"eslint-config-airbnb": "^18.2.1",
|
|
"eslint-config-prettier": "^8.8.0",
|
|
"eslint-import-resolver-typescript": "^3.5.5",
|
|
"eslint-plugin-chai-friendly": "^0.7.2",
|
|
"eslint-plugin-cypress": "^2.13.3",
|
|
"eslint-plugin-import": "^2.27.5",
|
|
"eslint-plugin-jest": "^27.2.2",
|
|
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
"eslint-plugin-prettier": "^4.2.1",
|
|
"eslint-plugin-react": "^7.32.2",
|
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
"jest": "^26.6.3",
|
|
"jest-environment-jsdom": "^26.6.2",
|
|
"jest-environment-node": "^26.6.2",
|
|
"jest-expo": "^49.0.0",
|
|
"metro-react-native-babel-preset": "0.76.4",
|
|
"npm-run-all": "^4.1.5",
|
|
"nx": "^17.0.2",
|
|
"patch-package": "7.0.0",
|
|
"prettier": "3.0.3",
|
|
"prettier-eslint": "^15.0.1",
|
|
"rimraf": "^5.0.5",
|
|
"semver": "^7.5.3",
|
|
"ts-jest": "^26.5.6",
|
|
"ts-node": "^10.9.1",
|
|
"tsconfig-paths": "^4.2.0",
|
|
"tsx": "^3.12.7",
|
|
"typescript": "4.9.5",
|
|
"version-bump-prompt": "^6.1.0"
|
|
},
|
|
"dependenciesMeta": {
|
|
"core-js-pure": {
|
|
"built": false
|
|
}
|
|
},
|
|
"packageManager": "yarn@3.2.2"
|
|
}
|