Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
fix: find npmGlobalBin with shelljs
Browse files Browse the repository at this point in the history
  • Loading branch information
RodEsp committed Oct 8, 2021
1 parent d1762a4 commit 4255698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/include-sf.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const path = require('path');
const shelljs = require('shelljs');
const fs = require('fs');

const npmGlobalBin = shelljs.exec('npm list -g --depth 0 | head -1').stdout.trim();
const npmGlobalBin = path.dirname(shelljs.which('sf'));
const sfGlobalPath = path.join(npmGlobalBin, 'node_modules', '@salesforce', 'cli');

// Copy globally installed sf to sf-cli/ at root of sfdx
Expand Down

0 comments on commit 4255698

Please sign in to comment.