Skip to content

typescript shoulodn't be a direct dependency #136

Closed as not planned
Closed as not planned

Description

@ematipico

typescript is marked as a direct dependency

"typescript": "^5.7.3"

This forces package managers to install the whole compiler even when it's not needed. Same thing for postcss

Activity

  1. XhmikosR commented on Feb 9, 2026

    @XhmikosR
    Member

    Typescript is a peerDependency of subpackages precinct depends on, so it needs to be installed. I guess we could make them optional and document it, but it's a breaking change. Also, there are other packages like vue that could be made optional if we go down that road, so I'm not sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions