add-nx
add-nx copied to clipboard
Top level package.json is ignored
The project that I am working on is a npm project that we want to migrate to NX monorepo. When the add-nx-to-monorepo command is run, the error Cannot find any projects in this monorepo occurs. The project has a package.json file at project root.
https://github.com/nrwl/add-nx/blob/fe4dce731ee90ca5b6a457f19347b2462dddc632/projects/add-nx-to-monorepo/src/add-nx-to-monorepo.ts#L82
This function scan for any package.json file and add NX config files to workspace. However the line mentioned above filters out the package.json at root instead of returning a list of paths containing it.