From fbeaf1f1d4b5c6eb0add562bc13b90c57cd70547 Mon Sep 17 00:00:00 2001 From: Rodrigo Espinosa de los Monteros <1084688+RodEsp@users.noreply.github.com> Date: Tue, 2 Nov 2021 01:07:00 -0400 Subject: [PATCH] fix: don't change dataDir for bundled sf --- package.json | 2 +- scripts/include-sf.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ce39e3ae..4493b606 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "sfdx-cli", "description": "Salesforce CLI", - "version": "7.126.0-dev.7", + "version": "7.126.0-dev.8", "author": "Salesforce", "license": "BSD-3-Clause", "bugs": "https://github.com/forcedotcom/cli/issues", diff --git a/scripts/include-sf.js b/scripts/include-sf.js index f540d890..5ce99812 100755 --- a/scripts/include-sf.js +++ b/scripts/include-sf.js @@ -14,7 +14,7 @@ const npmGlobalInstallPath = shelljs.exec('npm list -g --depth 0 | head -1').std const sfGlobalPath = path.join(npmGlobalInstallPath, 'node_modules', '@salesforce', 'cli'); console.log(`---- Including SF ----`); -console.log(`Moving sf from ${sfGlobalPath} to ./sf`); +console.log(` Moving sf from ${sfGlobalPath} to ./sf`); shelljs.mv('-f', sfGlobalPath, 'sf'); const sfUnixPath = 'sf/bin/run'; @@ -25,6 +25,7 @@ console.log(` Updating ${sfdxBin} with references to sf`); const binContents = fs .readFileSync(sfdxBin, 'UTF-8') .replace(/sfdx/g, 'sf') + .replace(/sf\/client/g, 'sfdx/client') .replace(/SFDX/g, 'SF') .replace(/\$DIR\/run/g, `$(dirname $DIR)/${sfUnixPath}`); @@ -40,6 +41,7 @@ console.log(` Updating ${sfdxCmd} with references to sf`); const cmdContents = fs .readFileSync(sfdxCmd, 'UTF-8') .replace(/sfdx/g, 'sf') + .replace(/sf\\client/g, 'sfdx/client') .replace(/SFDX/g, 'SF') .replace(/bin\\run/g, sfWinPath);