We hoist all our common deps to the top-level parent, as well as common utilities (jest, eslint, pm2, etc.)
However, many of the child folders have their own package.json for one reason or another. (version strings, main: declaration, etc.)
npx won't traverse past the current directory, but only if it has a package.json. (This was reported and then closed in https://github.com/zkat/npx/issues/210)
We hoist all our common deps to the top-level parent, as well as common utilities (jest, eslint, pm2, etc.)
However, many of the child folders have their own
package.json
for one reason or another. (version strings,main:
declaration, etc.)npx
won't traverse past the current directory, but only if it has apackage.json
. (This was reported and then closed in https://github.com/zkat/npx/issues/210)Example tree:
I should be able to, in
packages/bar
, callnpx foo
and have it resolve. This is expected behavior. But it won't.If
packages/bar
does NOT have apackage.json
,npx foo
will resolve to the correct in 2 parents up.