From 5f4611d65e40eae3ca6191a15f68d69ea5a1c4cb Mon Sep 17 00:00:00 2001 From: Kirill Rogovoy Date: Tue, 20 Jul 2021 21:24:52 +0300 Subject: WIP --- bin/postInstall | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100755 bin/postInstall (limited to 'bin/postInstall') diff --git a/bin/postInstall b/bin/postInstall deleted file mode 100755 index af540d2..0000000 --- a/bin/postInstall +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env node - -const childProcess = require("child_process") -const os = require("os") - -/** - * Do all things that need to be done after installing packages - * - * Yes, it slows down package installation a little, but it's nice to not - * have to remember these extra steps. - */ -;[ - // Patch all the necessary modules. - { command: "npx patch-package" }, - - // Make sure we're set up correctly - { command: "solidarity" }, - - // Kill the metro bundler if it's running. - { command: 'pkill -f "cli.js start" || set exit 0', onlyPlatforms: ["darwin", "linux"] }, - // Help wanted: Add the windows version here. { command: "????", onlyPlatforms: ["win32"] }, - - // Make sure our native modules are androidX-happy - { command: "jetify" }, - - // on iOS, make sure our native modules are installed - { command: "pod install", cwd: "ios", onlyPlatforms: ["darwin"] }, -] - .filter(({ onlyPlatforms }) => !onlyPlatforms || onlyPlatforms.includes(os.platform())) - .forEach((commandAndOptions) => { - const { command, onlyPlatform: _, ...options } = commandAndOptions - try { - childProcess.execSync(command, { - stdio: "inherit", - ...options, - }) - } catch (error) { - process.exit(error.status) - } - }) -- cgit v1.2.3