Skip to content

[heft] [typescript] Emit declarations for all module kinds #4214

Open
@Faithfinder

Description

@Faithfinder

> In short, you cannot use a single *.d.ts file to type an ESM and CJS implementation file at the same time. Another way of saying the same thing is that the declaration file extension has to match the extension of what it’s typing—.d.ts=.js, .d.cjs = .cjs, etc...
-- A. Branch

As far as I know this guy is the one who understand the modules mess the best, so I think to correctly create dual packages, you need to emit source maps and types for both module kinds.

Metadata

Metadata

Assignees

Labels

enhancementThe issue is asking for a new feature or design changehelp wantedIf you're looking to contribute, this issue is a good place to start!needs designThe next step is for someone to propose the details of an approach for solving the problem

Type

No type

Projects

Status

Needs Investigation

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions