From 8e43bed2b6f70d38389eafd8a764bcc6ca6b26c9 Mon Sep 17 00:00:00 2001 From: Mike Donnalley Date: Thu, 9 Sep 2021 09:22:58 -0600 Subject: [PATCH] fix: add script to execute sf --- bin/run-sf | 8 ++++++++ package.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 bin/run-sf diff --git a/bin/run-sf b/bin/run-sf new file mode 100755 index 00000000..a7ede371 --- /dev/null +++ b/bin/run-sf @@ -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' }) diff --git a/package.json b/package.json index a5709d94..78812365 100644 --- a/package.json +++ b/package.json @@ -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"