From 93e7e2be93d5f84011e2406dc7ea74707cedcff1 Mon Sep 17 00:00:00 2001 From: pedr Date: Mon, 18 Nov 2024 12:43:59 -0300 Subject: [PATCH] remove unnecessary content from packaged desktop app --- packages/onenote-converter/build.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/onenote-converter/build.js b/packages/onenote-converter/build.js index 4ec3c1f822c..ca25b04a86e 100644 --- a/packages/onenote-converter/build.js +++ b/packages/onenote-converter/build.js @@ -20,6 +20,13 @@ async function main() { const buildCommand = `wasm-pack build --target nodejs --${argv.profile}`; await execCommand(buildCommand); + + if (argv.profile !== 'release') return; + + // // If release build, remove intermediary folder to decrease size of release + const removeIntermediaryFolder = 'rm -r target/'; + + await execCommand(removeIntermediaryFolder); } // eslint-disable-next-line promise/prefer-await-to-then