Commit Graph

2 Commits

Author SHA1 Message Date
Tomas Martykan
3d71f2c20a feat(scripts): handle libESM in updateProjectReferences 2026-01-22 12:37:20 +01:00
karliatto
a9e189b9a3 build(repository): Connect publishing ESM
- Adding ESM builds for all the packages that are published on 'npm'.
   - Adding libESM to published files in package.json files
   - Relays only on "exports" section on package.json to define the ways to consume the package, so only modern bundlers would be able to use them, that should not be an issue, since projects are used to be on the latest
   - Using the root tsconfig.libESM
   - Using wildcard for @trezor/utils export so we can import any of the functions directly https://nodejs.org/api/packages.html#subpath-patterns
2026-01-20 16:37:46 +01:00