From 15d703fd826bc5e31a55b9f5a4db8e0fb197d3d9 Mon Sep 17 00:00:00 2001 From: Bsian Date: Tue, 9 Jun 2020 22:48:43 +0100 Subject: [PATCH] Fix lockfile yarn install filter --- src/commands/pull.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/commands/pull.ts b/src/commands/pull.ts index 9a4c8f5..a0991b1 100644 --- a/src/commands/pull.ts +++ b/src/commands/pull.ts @@ -56,14 +56,9 @@ export default class Pull extends Command { if (install.includes('Already up-to-date')) { const updatedMessage = passedPull.content.replace(`${this.client.stores.emojis.loading} ***Reinstalling dependencies...***`, `${this.client.stores.emojis.success} ***No dependency updates available***\n${this.client.stores.emojis.loading} ***Rebuilding files...***`); updatedPackages = await updateMessage.edit(updatedMessage); - } else if (install.includes('success Saved lockfile.')) { + } else { const updatedMessage = passedPull.content.replace(`${this.client.stores.emojis.loading} ***Reinstalling dependencies...***`, `${this.client.stores.emojis.success} ***Updated dependencies***\n${this.client.stores.emojis.loading} ***Rebuilding files...***`); updatedPackages = await updateMessage.edit(updatedMessage); - } else { - const updatedMessage = passedPull.content.replace(`${this.client.stores.emojis.loading} ***Reinstalling dependencies...***`, `${this.client.stores.emojis.error} ***Unexpected yarn install output***\n` - + `\`\`\`\n${install}\n\`\`\``); - this.client.updating = false; - return updateMessage.edit(updatedMessage); } let build: string;