Skip to content

Include typings folder in npm publish. #140

Closed
@parkerziegler

Description

@parkerziegler

Thanks for a helpful lib! It appears that the typings folder is not actually making it to npm, so the TS support isn't working. You can see that the typings folder isn't there by checking it out on runpkg: https://runpkg.com/?@testing-library/user-event@4.1.0/dist/index.js. Compare this to say, @testing-library/react, whose typings folder is published to npm: https://runpkg.com/?@testing-library/react@8.0.5/dist/index.js. Since there's no .npmignore nor a files field in the package.json, I believe everything that's on GitHub is ending up published to npm (which is strange that typings wouldn't also make it in this case), which even means your tests and source are getting bundled in folks' node_modules 😬 Finally, it appears the package.json version is out of lockstep with the npm published version. Happy to make a PR to help with these things if you like! Thanks again for a helpful lib.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions