As estree is exposed in the types used by estree-walker, when using estree-walker with a strict package manager like yarn pnp, TypeScript warns us that it cannot find the package estree when using estree-walker:

Here is the error I have in TypeScript:
.yarn/cache/estree-walker-npm-3.0.1-f100136724-002ec6bba6.zip/node_modules/estree-walker/types/index.d.ts(18,56): error TS2307: Cannot find module 'estree' or its corresponding type declarations.
Moving @types/estree to the deps would allow other package to directly find estree (as devDeps are not installed by other packages, but deps are)
As
estreeis exposed in the types used byestree-walker, when usingestree-walkerwith a strict package manager like yarn pnp, TypeScript warns us that it cannot find the packageestreewhen usingestree-walker:Here is the error I have in TypeScript:
Moving
@types/estreeto the deps would allow other package to directly findestree(as devDeps are not installed by other packages, but deps are)