MetaMask / MetaMask/extension-port-stream

Build using `ts-bridge` rather than `tsc` directly

Open
#77 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
24
Forks
10
PR merge metrics
No merged PRs in 30d

Description

Currently we output a build in CommonJS format. We should support ESM as well.

We can do this by switching to `ts-bridge`. See the module template for more.

- Add `ts-bridge` and `attw` as dev dependencies
- Update `build` package script to use `ts-bridge`
- Update `test` package script to run `attw --pack` after running tests

Contributor guide

No contributing guide indexed for this repository

Research direction

Inspect the package scripts and compare the build setup with the referenced module template. Add the requested development dependencies, update the build script to use ts-bridge, and make the test script run attw --pack after the tests. Done means the package builds in CommonJS and ESM formats and the test command completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.