For an unknown reason, my build fails at some point with the following error:
Package subpath './package.json' is not defined by "exports" in /.../node_modules/yargs/package.json
There is no more context on why the package.json from yargs is required.
However, adding this key in the exports of yargs' package.json works :
"exports": {
"./package.json": "./package.json"
}
Since yargs decided to add explicit exports, it would be a nice to let external tools read yargs' package description.