ink-testing-library
ink-testing-library copied to clipboard
Fix: VSCode cannot find package typings
Issue:
VS code couldn't find the typings of the project.
https://github.com/vadimdemedes/ink-testing-library/assets/9442803/945c9046-9cf7-4e67-ba99-21bb3db0dd98
What Has Been Done:
I used the types
attribute in package.json to ensure Vscode find the typings.
Source: https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html#including-declarations-in-your-npm-package
cc @vadimdemedes , What do you think?
Another option is #21, if it has a main
then tsserver will be able to find it.
The problem here is your tsconfig. Make sure you follow: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#how-can-i-make-my-typescript-project-output-esm