Skip to content

bug: type import paths are invalid for dist-custom-elements if dir matches location of types output location #4630

@tanner-reits

Description

@tanner-reits

Prerequisites

Stencil Version

4.0.2

Current Behavior

If you configure the dist-custom-elements output target to write to the default output location for Stencil (i.e. dist), the import paths for typedefs results in an invalid path:

{
  type: 'dist-custom-elements',
  dir: 'dist'
}

Results in import paths like: .types/components

Expected Behavior

A config like this should result in a valid path like: ./types/components

System Info

No response

Steps to Reproduce

Set this dir property on the dist-custom-elements output target in a Stencil component starter to dist

Code Reproduction URL

https://github.com/ionic-team/stencil-component-starter

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug: ValidatedThis PR or Issue is verified to be a bug within Stencil

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions