Skip to content

Preact and preact-testing-library should be defined as devDependencies #8

Closed
@aduth

Description

@aduth

preact and @testing-library/preact are defined as peer dependencies:

"peerDependencies": {
"@testing-library/preact": "^1.0.2",
"preact": "^10.4.1"
},

This makes sense for external consumers, but causes issues in local development, since TypeScript type checking will be unable to find types for the preact and @testing-library/preact packages, unless they are available in global caches.

To ensure that type definitions for preact and @testing-library/preact are available, they should be additionally be installed as devDependencies.

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