Skip to content

app-types is a peerDependency requiring non-TS projects to install it manually. #541

Closed
@jahed

Description

@jahed

[REQUIRED] Describe your environment

  • Operating System version: Windows 10
  • Firebase SDK version: 4.10.1
  • Firebase Product: app, auth, database

[REQUIRED] Describe the problem

app-types is a peerDependency for all product packages (specifically, their individual -types package). For non-TypeScript projects, it seems unnecessary to require us to include another dependency into our packages when all it does is introduce TypeScript definitions.

Why not include it as an optionalDependency or even just a regular dependency so that non-TS users don't need to care about it?

Steps to reproduce:

Adding any package without app-types. e.g.

yarn add @firebase/database

Prints the following warnings:

warning "@firebase/database > @firebase/database-types@0.1.2" has unmet peer dependency "@firebase/app-types@^0.1.0".
warning " > @firebase/database@0.1.11" has unmet peer dependency "@firebase/app-types@^0.1.0".

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions