Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add `exports` map to `package.json` of `@typescript/twoslash`

Open
#3,007 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
node.js, typescript
Domain
tooling

Research direction

Start at the package.json for @typescript/twoslash and review how its ESM distribution is currently exposed to Node.js. Done means the published package provides an exports map that lets Node.js consumers use the ESM version without encountering require; no test file is mentioned.

Written by the indexing model from the issue text.

Description

I wanted to know if you'd be open to a PR for this. Twoslash distributes an ESM version, but there's no way to use it from Node.js since exports is not defined. We need to use the ESM version as some of our tooling is having issues with encountering a require

Dominant language
TypeScript
Stars
2.6k
Forks
1.5k
Avg merge
2d 12h
Merged PRs (30d)
8

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/TypeScript-Website

All issues in microsoft/TypeScript-Website

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.