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

Commit

Permalink
fix: add script to execute sf
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Sep 9, 2021
1 parent 6e3fa31 commit 8e43bed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions bin/run-sf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env node

const cp = require('child_process');
const path = require('path');

const sfPath = path.join('node_modules', '.bin', 'sf')

cp.spawn(sfPath, process.argv.slice(2), { stdio: 'inherit' })
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"repository": "salesforcecli/sfdx-cli",
"bin": {
"sfdx": "bin/run",
"sf": "node_modules/@salesforce/cli/bin/run"
"sf": "bin/run-sf"
},
"engines": {
"node": ">=10"
Expand Down

0 comments on commit 8e43bed

Please sign in to comment.