Open sindresorhus opened 3 years ago
Hello! Yes, Skypack does require the "types"
or "typings"
field currently, even though TypeScript does allow for an automatically-detected index.d.ts
definition file in the root.
We are working on supporting this, but currently it’s a limitation of our registry data. We currently don’t have access to a package’s complete file system as we’re indexing npm packages. All we have to make that score is what’s available in package.json
, which is why we look for "types"
but not index.d.ts
.
We’ll add support for this soon! Sorry for any inconvenience.
For example, on https://www.skypack.dev/view/ky, it says the package does not have types, but it does. It's just that it doesn't have a
types
field in package.json because that's optional in this case: