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

Commit

Permalink
fix: don't get sf root from pwd()
Browse files Browse the repository at this point in the history
  • Loading branch information
RodEsp committed Oct 7, 2021
1 parent de93b42 commit 85f6e18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
"@oclif/plugin-command-snapshot": "^2.0.0",
"@salesforce/dev-config": "^2.1.2",
"@salesforce/dev-scripts": "^0.9.11",
"@salesforce/plugin-release-management": "dev",
"@salesforce/plugin-release-management": "^2.1.0",
"@salesforce/prettier-config": "^0.0.2",
"@salesforce/ts-sinon": "^1.3.12",
"@types/debug": "^4.1.5",
Expand Down
3 changes: 1 addition & 2 deletions scripts/include-sf.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ const fs = require('fs');

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

// Copy globally installed sf to sf-cli/ at root of sfdx
shelljs.mv('-f', sfGlobalPath, sfRoot);
shelljs.mv('-f', sfGlobalPath, 'sf-cli');

const sfUnixPath = 'sf-cli/bin/run';
const sfBin = path.join('bin', 'sf');
Expand Down

0 comments on commit 85f6e18

Please sign in to comment.