Skip to content

Commit 71e3576

Browse files
committed
fix(silent fail): add silent fail on remove pck
1 parent 3ad5fb5 commit 71e3576

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/RNBPlugin/index.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,14 @@ export class RNBPlugin {
128128
);
129129
await this.lifecycle.onInstall(value, previousValues);
130130
await this.lifecycle.afterInstall(value, previousValues);
131-
await execSync(
132-
`yarn remove ${this.packageUrl}`,
133-
{ stdio: 'pipe' },
134-
);
131+
try {
132+
await execSync(
133+
`yarn remove ${this.packageUrl}`,
134+
{ stdio: 'pipe' },
135+
);
136+
} catch (e) {
137+
// Silent fail
138+
}
135139
} catch (e) {
136140
console.error(e);
137141
}

0 commit comments

Comments
 (0)