Skip to content

Commit

Permalink
Chore: Desktop: Clean the defaultPlugins directory to fix slow startu…
Browse files Browse the repository at this point in the history
…p issue
  • Loading branch information
personalizedrefrigerator committed Jan 26, 2024
1 parent 13da286 commit 521c93d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/app-desktop/gulpfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -34,6 +35,7 @@ const tasks = {
buildDefaultPlugins: {
fn: async () => {
const outputDir = `${__dirname}/build/defaultPlugins/`;
await remove(outputDir);
await buildDefaultPlugins(outputDir);
},
},
Expand Down

0 comments on commit 521c93d

Please sign in to comment.