Skip to content

mtc fails to externalize .d.marko deps when another .d.marko is imported through a .d.ts file #587

Description

@caseycarroll

Version

mtc 6.1.3

Description

mtc fails to externalize tag-resolved .d.marko dependencies when another .d.marko is imported through TypeScript module resolution.

Reproduction

Repro: https://github.com/caseycarroll/mtc-externalize-err

  • src/components/test.marko uses a marko component through auto tag discovery.
  • src/types.d.ts contains a type import from an unrelated .d.marko file
  • tsconfig contains "include": ["src"],

mtc throws:

File '/Users/cacarroll/code/repros/mtc-externalize-err/node_modules/.pnpm/@eBay+ebayui-core@16.11.2_@ebay+skin@19.30.1_marko@5.39.32_three@0.183.2/node_modules/@ebay/ebayui-core/dist/components/ebay-icon/icons/ebay-search-20-icon/index.d.marko' is not listed within the file list of project '/Users/cacarroll/code/repros/mtc-externalize-err/tsconfig.json'. Projects must list all files or use an 'include' pattern.

importing the type of the same path in the test.marko does not throw the same error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions