From 521c93d345287d32e26ca1b11c5a0f4cb6078e9e Mon Sep 17 00:00:00 2001 From: Henry Heino Date: Fri, 26 Jan 2024 10:21:32 -0800 Subject: [PATCH] Chore: Desktop: Clean the defaultPlugins directory to fix slow startup issue --- packages/app-desktop/gulpfile.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/app-desktop/gulpfile.ts b/packages/app-desktop/gulpfile.ts index a399bbca93e..8dbec9828a1 100644 --- a/packages/app-desktop/gulpfile.ts +++ b/packages/app-desktop/gulpfile.ts @@ -4,6 +4,7 @@ const compileSass = require('@joplin/tools/compileSass'); const compilePackageInfo = require('@joplin/tools/compilePackageInfo'); import buildDefaultPlugins from '@joplin/default-plugins/commands/buildAll'; import copy7Zip from './tools/copy7Zip'; +import { remove } from 'fs-extra'; const tasks = { compileScripts: { @@ -34,6 +35,7 @@ const tasks = { buildDefaultPlugins: { fn: async () => { const outputDir = `${__dirname}/build/defaultPlugins/`; + await remove(outputDir); await buildDefaultPlugins(outputDir); }, },