-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing npm package types #167
Comments
Hello @bwswedberg, thanks for such detailed bug report, it's really hearth-warming to see those 😄 I've just released version 3.0.3 with a fix, enjoy! 🎉 (and please - confirm here that it works 😄 ) |
Thanks for the speedy update!! I really appreciate your effort. It feels like no visual regression tools are keeping pace with cypress releases--so I greatly this! The fix works as expected for the support type hints found in However, when installing I still noticed the types are not coming through in my // cypress.config.ts
import { defineConfig } from 'cypress';
// ts: Cannot find module '@frsource/cypress-plugin-visual-regression-diff/plugins' or its corresponding type declarations.
import { initPlugin } from '@frsource/cypress-plugin-visual-regression-diff/plugins';
// Resolves the export w/ types by referencing export directly
import { initPlugin } from '@frsource/cypress-plugin-visual-regression-diff/dist/plugins'; |
closes #167 Signed-off-by: Jakub Freisler <[email protected]>
🎉 This issue has been resolved in version 3.0.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
There are two things there: 1. Adressing the missing typings issue:According to the typescript repo, you must set moduleResolution to But I've found a solution on how to support "older typescript configuration". This got release under version 3.0.4, please try it out (and also, have a look at updated example in this repo). 2. Addressing the issue where you need to still use
|
# [1.1.0](v1.0.2...v1.1.0) (2022-11-03) ### Bug Fixes * **deps:** update all non-major dependencies ([FRSOURCE#165](https://github.com/braze-inc/cypress-plugin-visual-regression-diff/issues/165)) ([602640f](602640f)) * ts declaration generation ([1a1e0cc](1a1e0cc)) * typings for older typescript ([FRSOURCE#170](https://github.com/braze-inc/cypress-plugin-visual-regression-diff/issues/170)) ([96499ec](96499ec)), closes [FRSOURCE#167](https://github.com/braze-inc/cypress-plugin-visual-regression-diff/issues/167) ### Features * support Cypress retries functionality ([FRSOURCE#171](https://github.com/braze-inc/cypress-plugin-visual-regression-diff/issues/171)) ([7d7d010](7d7d010)), closes [FRSOURCE#168](https://github.com/braze-inc/cypress-plugin-visual-regression-diff/issues/168)
I upgraded to Thanks again!! |
Thank you for the bug report! Have a great rest of a week 😄 |
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:
npm install --save-dev @frsource/cypress-plugin-visual-regression-diff
@frsource/cypress-plugin-visual-regression-diff
install steps: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.
Screenshots
If applicable, add screenshots to help explain your problem.
Please complete the following information:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: