“dist-custom-elements-bundle” only produces type definitions when there’s also a “dist” output type #2516
Labels
ionitron: stale issue
This issue has not seen any activity for a long period of time
Stencil version:
(partially reproducible with 1.15.0-2 as well, see below)
I'm submitting a:
[x ] bug report
[ ] feature request
[ ] support request
Current behavior:
The output target
dist-custom-elements-bundle
only produces type definitions when there’s also adist
output type.For example, I have the following stencil config:
When I disable the
type: dist
entry and runstencil build
, I only get adist/prod/index.js
file.When I publish this as an NPM package and try to use it in another project, I get a “Cannot find module … or its corresponding type declarations.” error. (Note: This error does not appear in v1.15.0-2; however, the rest of this issue still exists there.)
With the
type: dist
entry enabled, I do get adist/prod/index.d.ts
file, but it references the types generated in thedist/legacy
target.Expected behavior:
The
dist-custom-elements-bundle
target should produce a self-contained package, without the dependency on another build target.Steps to reproduce:
(See example config above)
Other information:
By the way, the info on publishing packages is empty/broken: https://stenciljs.com/docs/publishing
The text was updated successfully, but these errors were encountered: