From 12ac7ecd9f3d353c43569c018af7ac31ae224d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hampus=20T=C3=A5gerud?= Date: Thu, 2 Aug 2018 06:20:53 +0200 Subject: [PATCH] Fix fa5-upgrade not finding package.json (#803) --- bin/add-font-assets.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/add-font-assets.js b/bin/add-font-assets.js index 3a291b1da..8152eb924 100755 --- a/bin/add-font-assets.js +++ b/bin/add-font-assets.js @@ -2,8 +2,10 @@ /* eslint-disable no-console */ const fs = require('fs'); +const path = require('path'); -const json = require('../../package.json'); +/* eslint-disable import/no-dynamic-require */ +const json = require(path.resolve('./package.json')); if (!json.rnpm) { json.rnpm = {