Skip to content

Commit

Permalink
fix(silent fail): add silent fail on remove pck
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyDolle committed Sep 20, 2022
1 parent 3ad5fb5 commit 71e3576
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/RNBPlugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,14 @@ export class RNBPlugin {
);
await this.lifecycle.onInstall(value, previousValues);
await this.lifecycle.afterInstall(value, previousValues);
await execSync(
`yarn remove ${this.packageUrl}`,
{ stdio: 'pipe' },
);
try {
await execSync(
`yarn remove ${this.packageUrl}`,
{ stdio: 'pipe' },
);
} catch (e) {
// Silent fail
}
} catch (e) {
console.error(e);
}
Expand Down

0 comments on commit 71e3576

Please sign in to comment.