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
- Create a clean project
- Install
@storybook/react-native@10.2.3
- Observe that
typescript is not automatically added as a dependency
- Upgrade to
@storybook/react-native@10.3.1
- Observe that
typescript is added as a dependency
Describe the bug
Starting with version 10.3.x, installing
@storybook/react-nativecausestypescriptto be automatically installed innode_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
@storybook/react-native@10.2.3typescriptis not automatically added as a dependency@storybook/react-native@10.3.1typescriptis added as a dependency