Files
trezor-suite/packages/websocket-client/package.json
2026-02-26 12:47:47 +01:00

63 lines
1.9 KiB
JSON

{
"name": "@trezor/websocket-client",
"version": "10.0.0-alpha.1",
"author": "Trezor <info@trezor.io>",
"homepage": "https://github.com/trezor/trezor-suite/tree/develop/packages/websocket",
"description": "Shared websocket client implementation",
"npmPublishAccess": "public",
"license": "SEE LICENSE IN LICENSE.md",
"repository": {
"type": "git",
"url": "git://github.com/trezor/trezor-suite.git"
},
"bugs": {
"url": "https://github.com/trezor/trezor-suite/issues"
},
"sideEffects": false,
"main": "src/index",
"browser": {
"ws": "./src/ws-browser"
},
"react-native": {
"__comment__": "Hotfix for issue where RN metro bundler resolve relatives paths wrong",
"ws": "@trezor/websocket-client/src/ws-native.ts"
},
"publishConfig": {
"main": "./lib/index.js",
"types": "lib/index.d.ts",
"typings": "lib/index.d.ts",
"browser": {
"ws": "./lib/ws-browser.js"
},
"react-native": {
"__comment__": "Hotfix for issue where RN metro bundler resolve relatives paths wrong",
"ws": "@trezor/websocket-client/lib/ws-native.js"
}
},
"files": [
"lib/",
"CHANGELOG.md"
],
"scripts": {
"depcheck": "yarn g:depcheck",
"test:unit": "yarn g:jest",
"type-check": "yarn g:tsc --build",
"build:lib": "yarn g:rimraf lib && yarn g:tsc --build tsconfig.lib.json && ../../scripts/publish/replace-imports.sh ./lib cjs",
"prepublishOnly": "yarn tsx ../../scripts/publish/prepublishNPM.js"
},
"dependencies": {
"@trezor/utils": "workspace:*",
"ws": "^8.18.0"
},
"peerDependencies": {
"tslib": "^2.6.2"
},
"devDependencies": {
"@types/jest": "29.5.12",
"@types/node": "22.13.10",
"@types/web": "^0.0.197",
"@types/ws": "^8.5.13",
"tsx": "^4.21.0"
}
}