From ec982f34111b69ccd9fb55a1558ebfeb411e9728 Mon Sep 17 00:00:00 2001 From: Cristian Dominguez Date: Wed, 29 Nov 2023 16:28:01 -0300 Subject: [PATCH] fix: remove unused jsforce stuff --- src/commands/cli/tarballs/prepare.ts | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/commands/cli/tarballs/prepare.ts b/src/commands/cli/tarballs/prepare.ts index 1275e43d..2d471239 100644 --- a/src/commands/cli/tarballs/prepare.ts +++ b/src/commands/cli/tarballs/prepare.ts @@ -101,9 +101,21 @@ export default class Prepare extends SfCommand { const nycOutput = await find(`${baseDirGlob}/**/.nyc_output`); this.remove(nycOutput, '.nyc_output files'); - // Large files shipped with jsforce - const jsforceBuild = await find(`${baseDirGlob}/jsforce/build`, { onlyDirectories: true }); - this.remove(jsforceBuild, 'jsforce/build directory'); + // START TODO: delete after `sf` moves to `jsforce-node` + // Delete large files shipped with jsforce + // + // Browser bundles + const jsforceBuild = await find(`${baseDirGlob}/jsforce/dist`, { onlyDirectories: true }); + this.remove(jsforceBuild, 'jsforce/dist directory'); + + // TS source code + const jsforceSrc = await find(`${baseDirGlob}/jsforce/src`, { onlyDirectories: true }); + this.remove(jsforceSrc, 'jsforce/src directory'); + + // ESM browser build + const jsforceESMBrowserBuild = await find(`${baseDirGlob}/jsforce/browser`, { onlyDirectories: true }); + this.remove(jsforceESMBrowserBuild, 'jsforce/browser directory'); + // END // This breaks compilation. We need to probably do this right before the pack, but then this will // break compilation the next time compile is ran without doing a yarn install --force