console-ninja
console-ninja copied to clipboard
Add support for running/opening individual monorepo packages in VS Code
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.
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 Thanks for explaining. Does it matter run dev server from root or subfolder?
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.