micromark / micromark

small, safe, and great commonmark (optionally gfm) compliant markdown parser

Home Page:https://unifiedjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`index.d.ts` is missing in `micromark-util-encode` published files

jaydenseric opened this issue · comments

Initial checklist

Affected packages and versions

micromark-util-encode@1.0.0

Link to runnable example

No response

Steps to reproduce

The package.json published for micromark-util-encode v1.0.0 contains "types": "index.d.ts":

https://unpkg.com/browse/micromark-util-encode@1.0.0/package.json

Yet the index.d.ts file is not in the files whitelist:

"files": [
"index.js"
],

Most likely that is the reason index.d.ts isn't published:

https://unpkg.com/browse/micromark-util-encode@1.0.0/

I haven't checked if other micromark packages have a similar issue, this is just what I discovered in my particular project:
Screen Shot 2021-12-25 at 10 41 32 am

Expected behavior

Types declared in the package.json should be published.

Actual behavior

Types declared in the package.json are not published.

Runtime

Node v16

Package manager

npm v7

OS

macOS

Build and bundle tools

Other (please specify in steps to reproduce)

commented

I looked through all "files" fields and it’s not missing in other places

commented

Fixed in 0e7aae7

commented

…and released!