[X] I searched issues and couldn’t find anything (or linked relevant results below)
Affected packages and versions
mdast-util-directive 2.1.1
Link to runnable example
No response
Steps to reproduce
When using Yarn with strict PnP mode, complex-types.d.ts cannot import unist because @types/unist is not explicitly listed in the package.json dependencies field. This causes the interfaces TextDirective, LeafDirective and ContainerDirective to be incomplete because they cannot resolve the parent interface Parent from unist.
Expected behavior
@types/unist is explicitly listed in the package.json dependencies field.
Actual behavior
@types/unist is not explicitly listed in the package.json dependencies field.
Initial checklist
Affected packages and versions
mdast-util-directive 2.1.1
Link to runnable example
No response
Steps to reproduce
When using Yarn with strict PnP mode,
complex-types.d.ts
cannot importunist
because@types/unist
is not explicitly listed in the package.json dependencies field. This causes the interfacesTextDirective
,LeafDirective
andContainerDirective
to be incomplete because they cannot resolve the parent interfaceParent
fromunist
.Expected behavior
@types/unist
is explicitly listed in the package.json dependencies field.Actual behavior
@types/unist
is not explicitly listed in the package.json dependencies field.Runtime
Node v16
Package manager
Other (please specify in steps to reproduce)
OS
Linux
Build and bundle tools
Webpack