"types": "src/types/index.d.ts",
will point to a new file with a module declaration. Webstorm is looking for that line.
"files": [ "src", "dist" ],
This will make it so that when you run npm publish it will only gzip these two directories instead of the whole thing. I believe you could even send dist alone but providing the src directory helps when people want to read the component's code.
Related to #230
Added a couple lines to your package.json
"types": "src/types/index.d.ts",
will point to a new file with a module declaration. Webstorm is looking for that line."files": [ "src", "dist" ],
This will make it so that when you run
npm publish
it will only gzip these two directories instead of the whole thing. I believe you could even send dist alone but providing the src directory helps when people want to read the component's code.