Does anyone understand w…

less than 1 minute read

Does anyone understand why it’s looking for the code directly in the node_modules rather than require? function loadCli(workspace: Workspace) { if (workspace.type === 'nx') { require(path.join( workspace.dir, 'node_modules', '@nrwl', 'tao', 'index.js' )); } else if (workspace.type === 'angular') { require(path.join( workspace.dir, 'node_modules', '@angular', 'cli', 'lib', 'init.js' )); } else { console.error(`Cannot recognize the workspace type.`); process.exit(1); } }

Updated: