Skip to content

Commit

Permalink
remove unnecessary content from packaged desktop app
Browse files Browse the repository at this point in the history
  • Loading branch information
pedr committed Nov 18, 2024
1 parent 30a8a38 commit 93e7e2b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/onenote-converter/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 93e7e2b

Please sign in to comment.