check-dependencies icon indicating copy to clipboard operation
check-dependencies copied to clipboard

support hoisted node_modules

Open kuceb opened this issue 6 years ago • 3 comments

right now it only searches the sibling node_modules folder, but it would be nice to search node_modules that may be hoisted up further in the tree, since node will be able to resolve them.

e.g.:

root
	package.json
	node_modules/
		a-module-dep
	packages/
		a-module
		package.json

this way I could use yarn workspaces, which hoists node_modules of subpackages in a monorepo

kuceb avatar May 21 '19 16:05 kuceb

Hello Everyone, Can we please get support for this.

We have packages structure like below:

Lerna-Repo
node_modules
package.json 
        package1
                package.json
                node_modules
        package2
                package.json
                node_modules

We are using lerna bootstrap --hoist It will be so helpful if the tool search node_modules that are hoisted up to the root.

cc: @Bkucera

Thank you in advance.

Raag007 avatar Dec 28 '20 23:12 Raag007

I agree it’d be useful in some cases. But I don’t have time to do it myself at the moment; PRs (with tests) welcome.

mgol avatar Dec 29 '20 07:12 mgol

Ran into the same issue with npm workspaces. Looks like I cannot adapt this package in my monorepo at the moment.

isoroka-plana avatar Nov 17 '23 11:11 isoroka-plana