console-ninja icon indicating copy to clipboard operation
console-ninja copied to clipboard

Add support for running/opening individual monorepo packages in VS Code

Open rwu823 opened this issue 2 years ago • 3 comments

Assume we had these file structures:

├── packages
│  └── nextjs-project
package.json

And then start the next dev server of nextjs-project, it will not be detected.

rwu823 avatar Dec 11 '22 04:12 rwu823

Right now, if the very root of the monorepo is opened in VS Code as project (and not an individual package), then running dev server in individual packages should work.

It should also work if an individual package has all of its node modules inside its subfolder (and not hoisted).

What doesn't work right now, is opening an individual package as a project in VS Code with no node modules installed in the individual package folder (but installed in parent/root directory for example).

ArtemGovorov avatar Dec 11 '22 04:12 ArtemGovorov

@ArtemGovorov Thanks for explaining. Does it matter run dev server from root or subfolder?

rwu823 avatar Dec 11 '22 13:12 rwu823

Does it matter run dev server from root or subfolder?

After the next release (v0.0.29+) it should not matter and if the root of the repo is opened in the editor, then the dev server may be started either from the root or from the subfolder.

ArtemGovorov avatar Dec 12 '22 05:12 ArtemGovorov