fix(nx-plugin): remove function copyNodeModules from ensureNxProject to prevent @nrwl modules ov (#2931)

The function `copyNodeModules` deletes a plugin inside `node_modules/@nrwl` if it's being developed
under `@nrwl` workspace. The function runs as part of `ensureNxProject` and is safe to remove as
@nrwl related modules will be installed as dependencies from npm.
This commit is contained in:
Max Koretskyi 2020-04-29 08:10:00 +03:00 committed by GitHub
parent e06822da7e
commit b55a1a96dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,5 +74,4 @@ export function ensureNxProject(
): void { ): void {
ensureDirSync(tmpProjPath()); ensureDirSync(tmpProjPath());
newNxProject(npmPackageName, pluginDistPath); newNxProject(npmPackageName, pluginDistPath);
copyNodeModules(['@nrwl']);
} }