yeoman / yo

CLI tool for running Yeoman generators

Home Page:http://yeoman.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`yo` depends on deprecated `module.parent`, should update `meow`

loynoir opened this issue · comments

Type of issue


My environment

  • OS version/details: eg. Windows 10 64-bit
  • Node version: x.x.x (run node --version in your terminal)
  • npm version: x.x.x (run npm --version in your terminal)
  • Version of yo : x.x.x (run yo --version in your terminal) 4.3.1

Expected behavior

Should update meow to a version don't use module.parent.

Current behavior

yo@4.3.1 depends on meow@5.0.0
https://github.com/yeoman/yo/blob/v4.3.1/package.json#L59

meow@5.0.0 depends on module.parent.filename
https://github.com/sindresorhus/meow/blob/v5.0.0/index.js#L15

module.parent Deprecated since: v14.6.0, v12.19.0

https://nodejs.org/api/modules.html#moduleparent

Steps to reproduce the behavior

Command line output

Paste your error output over here

Related

denoland/deno#19105