Chore: Desktop: Fix slow startup issue: defaultPlugins directory not cleaned on rebuild (#9785)

pull/9789/head
Henry Heino 2024-01-26 11:11:22 -08:00 committed by GitHub
parent 821cc346f7
commit b69d752734
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -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);
},
},