Skip to content

Commit

Permalink
refactor: cleanup package-utils
Browse files Browse the repository at this point in the history
  • Loading branch information
anshumanv committed Oct 9, 2020
1 parent 195fe31 commit dce1572
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/utils/src/global-packages-path.ts
@@ -1,5 +1,6 @@
import spawn from 'cross-spawn';
import path from 'path';
import { getPackageManager } from './get-package-manager';

/**
*
Expand All @@ -10,7 +11,7 @@ import path from 'path';
* @returns {String} path - Path to global node_modules folder
*/
export function getPathToGlobalPackages(): string {
const manager: string = exports.getPackageManager();
const manager: string = getPackageManager();
if (manager === 'yarn') {
try {
const yarnDir = spawn.sync('yarn', ['global', 'dir']).stdout.toString().trim();
Expand Down

0 comments on commit dce1572

Please sign in to comment.