fix: add depcheck scripts for all the package.json-s

This commit is contained in:
Peter Sanderson
2025-09-17 18:15:54 +02:00
committed by Peter Sanderson
parent aa44d126f4
commit a4f8b09e38
19 changed files with 32 additions and 15 deletions

View File

@@ -6,7 +6,8 @@
"private": true,
"main": "src/index",
"scripts": {
"test:unit": "yarn g:jest -c ./jest.config.js"
"test:unit": "yarn g:jest -c ./jest.config.js",
"depcheck": "yarn g:depcheck"
},
"dependencies": {
"base-x": "^5.0.1",

View File

@@ -36,10 +36,12 @@
"type-check": "yarn g:tsc --build tsconfig.json",
"prepublishOnly": "yarn tsx ../../scripts/prepublishNPM.js",
"prepublish": "yarn tsx ../../scripts/prepublish.js",
"validate-releases.json": "./scripts/check-all-firmware-revisions.sh"
"validate-releases.json": "./scripts/check-all-firmware-revisions.sh",
"depcheck": "yarn g:depcheck"
},
"dependencies": {
"@trezor/env-utils": "workspace:*",
"@trezor/type-utils": "workspace:*",
"@trezor/utils": "workspace:*"
},
"peerDependencies": {

View File

@@ -4,6 +4,7 @@
"include": ["."],
"references": [
{ "path": "../env-utils" },
{ "path": "../type-utils" },
{ "path": "../utils" }
]
}

View File

@@ -9,6 +9,9 @@
{
"path": "../env-utils"
},
{
"path": "../type-utils"
},
{
"path": "../utils"
}

View File

@@ -9,7 +9,8 @@
"dev": "electron .",
"build:mac": "electron-builder --mac",
"build:linux": "electron-builder --linux",
"build:win": "electron-builder --win"
"build:win": "electron-builder --win",
"depcheck": "yarn g:depcheck"
},
"build": {
"appId": "${name}",

View File

@@ -9,7 +9,8 @@
"dev": "electron .",
"build:mac": "electron-builder --mac",
"build:linux": "electron-builder --linux",
"build:win": "electron-builder --win"
"build:win": "electron-builder --win",
"depcheck": "yarn g:depcheck"
},
"build": {
"appId": "${name}",

View File

@@ -5,7 +5,8 @@
"author": "Satoshilabs s.r.o <info@satoshilabs.com>",
"license": "MIT",
"scripts": {
"start": "tsx ./src/index.ts"
"start": "tsx ./src/index.ts",
"depcheck": "yarn g:depcheck"
},
"dependencies": {
"@trezor/connect": "workspace:*",

View File

@@ -45,6 +45,7 @@
"type-check": "yarn g:tsc --build tsconfig.json",
"build:lib": "yarn build:lib:cjs && yarn build:lib:esm",
"build:lib:cjs": "yarn g:rimraf ./lib && yarn g:tsc --build tsconfig.lib.json && ../../scripts/replace-imports.sh ./lib",
"build:lib:esm": "yarn g:rimraf ./libESM && yarn g:tsc --build tsconfig.libESM.json && ../../scripts/replace-imports.sh ./libESM libESM"
"build:lib:esm": "yarn g:rimraf ./libESM && yarn g:tsc --build tsconfig.libESM.json && ../../scripts/replace-imports.sh ./libESM libESM",
"depcheck": "yarn g:depcheck"
}
}

View File

@@ -50,6 +50,7 @@
"type-check": "yarn g:tsc --build tsconfig.json",
"build:lib": "yarn build:lib:cjs && yarn build:lib:esm",
"build:lib:cjs": "yarn g:rimraf ./lib && yarn g:tsc --build tsconfig.lib.json && ../../scripts/replace-imports.sh ./lib",
"build:lib:esm": "yarn g:rimraf ./libESM && yarn g:tsc --build tsconfig.libESM.json && ../../scripts/replace-imports.sh ./libESM libESM"
"build:lib:esm": "yarn g:rimraf ./libESM && yarn g:tsc --build tsconfig.libESM.json && ../../scripts/replace-imports.sh ./libESM libESM",
"depcheck": "yarn g:depcheck"
}
}

View File

@@ -6,7 +6,8 @@
"scripts": {
"type-check": "yarn g:tsc --build tsconfig.json",
"open:ios": "open -a \"Xcode\" example/ios",
"open:android": "open -a \"Android Studio\" example/android"
"open:android": "open -a \"Android Studio\" example/android",
"depcheck": "yarn g:depcheck"
},
"keywords": [
"react-native",

View File

@@ -10,7 +10,8 @@
"test:unit": "yarn g:jest --testPathIgnorePatterns e2e -c jest.config.js",
"test:e2e": "yarn g:jest --runInBand --testPathIgnorePatterns tests -c jest.config..js",
"type-check": "yarn g:tsc --build tsconfig.json",
"test:stress": "ts-node -O '{\"module\": \"commonjs\"}' ./e2e/identities-stress.ts"
"test:stress": "ts-node -O '{\"module\": \"commonjs\"}' ./e2e/identities-stress.ts",
"depcheck": "yarn g:depcheck"
},
"dependencies": {
"@trezor/node-utils": "workspace:^",

View File

@@ -15,7 +15,8 @@
"browser": "./src/renderer.ts",
"scripts": {
"test:unit": "yarn g:jest --verbose -c jest.config.js",
"type-check": "yarn g:tsc --build tsconfig.json"
"type-check": "yarn g:tsc --build tsconfig.json",
"depcheck": "yarn g:depcheck"
},
"dependencies": {
"electron": "38.0.0"

View File

@@ -67,7 +67,6 @@
"@suite-common/trading": "workspace:*",
"@suite-common/wallet-utils": "workspace:*",
"@trezor/blockchain-link-types": "workspace:^",
"@trezor/device-utils": "workspace:*",
"@trezor/e2e-utils": "workspace:*",
"@trezor/protobuf": "workspace:*",
"@trezor/suite-analytics": "workspace:*",

View File

@@ -46,7 +46,6 @@
"path": "../../suite-common/wallet-utils"
},
{ "path": "../blockchain-link-types" },
{ "path": "../device-utils" },
{ "path": "../e2e-utils" },
{ "path": "../protobuf" },
{ "path": "../suite-analytics" },

View File

@@ -1,6 +1,6 @@
{
"ignore-patterns": ["libDev", "lib", "dist", "build"],
"ignores": [
"ignores": [
"// Runtime deps for electron-main process. They must be in package.json, since electron-builder is hardwired for it.",
"openpgp",
"usb",

View File

@@ -11,7 +11,8 @@
"description": "trezor suite storage",
"scripts": {
"type-check": "yarn g:tsc --build tsconfig.json",
"type-check:watch": "yarn type-check -- --watch"
"type-check:watch": "yarn type-check -- --watch",
"depcheck": "yarn g:depcheck"
},
"main": "./src/web/index.ts",
"react-native": "./src/native/index.ts",

View File

@@ -30,7 +30,8 @@
"build:lib:cjs": "yarn g:rimraf ./lib && yarn g:tsc --build tsconfig.lib.json && ../../scripts/replace-imports.sh ./lib",
"build:lib:esm": "yarn g:rimraf ./libESM && yarn g:tsc --build tsconfig.libESM.json && ../../scripts/replace-imports.sh ./libESM libESM",
"prepublishOnly": "yarn tsx ../../scripts/prepublishNPM.js",
"prepublish": "yarn tsx ../../scripts/prepublish.js"
"prepublish": "yarn tsx ../../scripts/prepublish.js",
"depcheck": "yarn g:depcheck"
},
"peerDependencies": {
"tslib": "^2.6.2"

View File

@@ -21,6 +21,7 @@
"@suite-native/analytics": "workspace:*",
"@suite-native/atoms": "workspace:*",
"@suite-native/bluetooth": "workspace:*",
"@suite-native/coin-enabling": "workspace:*",
"@suite-native/device": "workspace:*",
"@suite-native/device-authorization": "workspace:*",
"@suite-native/discovery": "workspace:*",

View File

@@ -13,6 +13,7 @@
{ "path": "../analytics" },
{ "path": "../atoms" },
{ "path": "../bluetooth" },
{ "path": "../coin-enabling" },
{ "path": "../device" },
{ "path": "../device-authorization" },
{ "path": "../discovery" },