RocketChat / RocketChat/Rocket.Chat

Cleanup: Remove misleading "main" field from monorepo root package.json

Open Beginner friendly
#39,884 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: feature
Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description

The root package.json currently defines a "main": "index.js" field.

However, this repository is a monorepo and is marked as "private": true, meaning it is not intended to be consumed as a package. In this context, the "main" field is misleading and unnecessary.

Why this matters
  • The "main" field is typically used to define the entry point of a published package.
  • In a monorepo setup, especially one that is private, this can cause confusion for tooling or developers trying to interpret the package structure.
  • There is no clear use of the root as an importable module.
Proposed Solution

Remove the "main" field from the root package.json to better reflect the repository structure and avoid ambiguity.

Additionally, the "author" field is currently empty and could either be removed or properly defined for consistency.


I can work on this and submit a PR if this approach is acceptable.

Contributor guide

Open the contributing guide

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.

Research direction

Open the repository-root package.json and inspect the existing package metadata, especially the private flag and main and author fields. Remove the misleading main field as proposed, resolve the empty author field consistently with the issue discussion, and verify that the resulting JSON remains valid and the root metadata still matches the monorepo setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system
Issue type
Refactor
Difficulty
1/5
Estimated time
Under an hour
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
78/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.