1
0
Fork 0

Fix lockfile yarn install filter

refactor/models
Bsian 2020-06-09 22:48:43 +01:00
parent 0d9d8a7047
commit 15d703fd82
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 6 deletions

View File

@ -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;