Skip to content

Missing npm package types #167

Closed
@bwswedberg

Description

@bwswedberg

Describe the bug
A clear and concise description of what the bug is.

The types (dist/*.d.ts) aren't packaged with the npm repo which prevents typescript projects from inferring types.

To Reproduce
Steps to reproduce the behavior:

  1. Create a typescript cypress project
  2. npm install --save-dev @frsource/cypress-plugin-visual-regression-diff
  3. Begin @frsource/cypress-plugin-visual-regression-diff install steps:
import '@frsource/cypress-plugin-visual-regression-diff'; // warning shown here

Could not find a declaration file for module '@frsource/cypress-plugin-visual-regression-diff'. '/Users/.../node_modules/@frsource/cypress-plugin-visual-regression-diff/dist/support.js' implicitly has an 'any' type.
Try npm i --save-dev @types/frsource__cypress-plugin-visual-regression-diff if it exists or add a new declaration (.d.ts) file containing declare module '@frsource/cypress-plugin-visual-regression-diff';ts(7016)

Expected behavior
A clear and concise description of what you expected to happen.

Types to be included in npm package since this is a typescript repo. It looks like they previously were based on the package.json.

image

Screenshots
If applicable, add screenshots to help explain your problem.

image

Please complete the following information:

  • OS and version: [e.g. Windows 10 build. 19043.1319] MacOS 12.4
  • Browser and version [e.g. chrome 22] N/A
  • Cypress version [e.g. 8.6.0] 10.11.0
  • @frsource/cypress-plugin-visual-regression-diff version 3.0.2

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions