Skip to content

Installing 10.3.x causes typescript to be pulled into the project as a dependencyΒ #879

@SimpleCreations

Description

@SimpleCreations

Describe the bug
Starting with version 10.3.x, installing @storybook/react-native causes typescript to be automatically installed in node_modules. This is not desirable, for example, when the project is part of a monorepo where TypeScript is managed externally. React Native (even when TypeScript is used for sources) and most other 3rd party libraries do not depend on TypeScript.

TypeScript should not be a dependency of a 3rd party library. This bloats the project with an unnecessary TypeScript installation, and it may be not clear to tooling and developers which TypeScript version is the right one if the project already relies on a different TypeScript installation.

To Reproduce

  1. Create a clean project
  2. Install @storybook/react-native@10.2.3
  3. Observe that typescript is not automatically added as a dependency
  4. Upgrade to @storybook/react-native@10.3.1
  5. Observe that typescript is added as a dependency

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