Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@trezor/env-utils

trezor373.5kSee LICENSE.md in repo root1.3.4TypeScript support: included

null

readme

TREZOR SUITE MONOREPO

Welcome to the Trezor Suite repository! This repository contains the source code for 3 projects:

  • Connect - tool that offers developers an easy way to integrate Trezor's functionality into their own applications
  • Trezor Suite - desktop and web application for managing Trezor hardware wallet
  • Trezor Suite Lite - Mobile application designed for tracking user portfolios

img

Development

Prerequisities

Getting started

  • git clone git@github.com:trezor/trezor-suite.git
  • cd trezor-suite
  • git submodule update --init --recursive
  • git lfs install // Set up Git LFS for your user account. You only need to run this once per user account.
  • git lfs pull
  • nvm install
  • yarn
  • yarn build:libs

It's recommended to enable git config --global submodule.recurse true so you don't need to run git submodule update --init --recursive every time when submodules are updated.

You don't need a Trezor device to get into the app, you can use emulator. There is a Trezor User Env to help you set it up and run emulator for any Trezor model 🎉

Connect @trezor/connect

This repository is used for development of version 9 of @trezor/connect. For detailed documentation, please refer to this page.

Historically, Trezor Connect had its own repository. This repository is now archived.

Trezor Suite @trezor/suite

Dev environment is primarily supported on macOS or Linux, though development on Windows is possible by following this guide.

Run a dev build:

  • yarn suite:dev (web app)
  • yarn suite:dev:vite (⚠️ EXPERIMENTAL: web app with Vite bundler used for development only, use yarn suite:dev if you want fidelity to production app)
  • yarn suite:dev:desktop (electron app)

Trezor Suite Lite @suite-native/app

To set up your dev environment for a native platform (iOS/Android) follow these additional steps.

Contribute

Inspired by GitLab Contributing Guide

Using Conventional Commits is required.

Security vulnerability disclosure

Please report suspected security vulnerabilities in private to security@satoshilabs.com, also see the disclosure section on the Trezor.io website. Please do NOT create publicly viewable issues for suspected security vulnerabilities.

IDE specific settings

Find specific settings for Integrated Development Environments (IDE) in IDE.md

changelog

1.3.4

  • npm-prerelease: @trezor/env-utils 1.3.4-beta.1 (94d44ddcf9)
  • chore: apply latest prettier (eb758acea9)

1.3.3

  • npm-prerelease: @trezor/env-utils 1.3.3-beta.1 (ffd8f0ab80)
  • feat(env-utils): add getCpuArch (b3deeb546b)
  • feat(env-utils): implement new getOsVersion, deprecate old one (1973c02f62)
  • chore(env-utils): narrow down types of is platform functions (35c943abd9)
  • chore(suite): ua-parser-js@2.0.3 (840d5c6202)

1.3.2

  • npm-prerelease: @trezor/env-utils 1.3.2-beta.1 (d3b393f591)

1.3.1

  • npm-prerelease: @trezor/env-utils 1.3.1-beta.1 (c4c43edca8)
  • fix(repo): fix generate package script (#17300) (a13f269b99)

1.3.0

  • npm-prerelease: @trezor/env-utils 1.3.0-beta.1 (7a125b0091)
  • npm-prerelease: @trezor/env-utils 1.2.2-beta.1 (cc55141299)
  • chore(packages): autofix for sort-imports eslint rule (b96c899ebb)

1.2.1

  • npm-prerelease: @trezor/env-utils 1.2.1-beta.1 (571dd950c6)
  • chore: remove glboal nx/workspace link scripts (it shall be run only globally) + resolve ugly igonores for devDependencies in import/no-extraneous-dependencies (abb41f8033)

1.2.0

  • npm-prerelease: @trezor/env-utils 1.1.1-beta.1 (bbcfc75743)
  • chore: update txs from 4.7.0 to 4.16.2 (59c856fd0f)

1.0.18-beta.1

  • chore(suite): depcheck enabled (2206f19f2e)
  • chore(env-utils): make expo-constants optional peer dependency (b51e9e07f5)
  • fix(env-utils): move publicKey from @suite-common/wallet-constants (0d54971f34)

1.0.15

  • chore: TS project references for build:libs + buildless utxo-lib (#11526) (4d857722fe)
  • chore(repo): mostly buildless monorepo (#11464) (637ad88dcf)

1.0.14

  • fix: from g:tsx to local tsx in prepublish script (d21d698b2)
  • chore(repo): remove build:lib for some simple packages (#11276) (7febd10cf)
  • chore(suite): autofix newlines (c82455e74)
  • feat(suite-native): expo eas (#10898) (02009f17c)
  • chore: use global tsx (c21d81f66)
  • chore: update typescript and use global tsc (84bc9b8bd)
  • chore: use global rimraf (5a6759eff)
  • chore: update root dependencies (fac6d99ec)

1.0.12

  • chore: unify isCodesignBuild condition (fb80938756)
  • chore(mobile): Expo migration (#10769) (bb37005e6b)

1.0.11

  • chore(suite): add fiat rates to common (e2fb9ea19)

1.0.10

  • chore(connect): use tslib as dependency in all public libs (606ecc63b)
  • chore(repo): update tsx (53de3e3a8)
  • fix(suite-native): use correct message config on mobile (#10184) (082592a2b)

1.0.9

  • chore(repo): Upgrade TS 5.3 (#10017) (7277f9d0f)
  • chore(repo): upgrade to TS 5.2 (#9989) (bf8d0fe80)
  • feat(deps): update deps without breaking changes (7e0584c51)
  • chore(desktop): update deps related to desktop packages (af412cfb5)

1.0.6

  • chore(env-utils): build:lib (044490ef5)

1.0.5

  • chore: remove some unecessary build:lib (0a5d8267c)

1.0.3

  • fix(env-utils): prevent react-native dependencies to be bundled in suite-desktop (818d91047)
  • chore(dependencies): remove unnecessary exception for no-extraneous-dependencies (21f1424b0)
  • chore(suite): add suite version and commit hash to env utils (aec3d373d)
  • chore(suite): move env util from suite to trezor package to make it reusable for native (c22aa6c31)

1.0.1

  • 9b9b72a01 chore(env-utils): add tsx as dev dependency
  • a1d75cb01 chore(env-utils): npm scripts

1.0.0

  • first release