Skip to content

Commit

Permalink
Fix fa5-upgrade not finding package.json (oblador#803)
Browse files Browse the repository at this point in the history
  • Loading branch information
hampustagerud authored and oblador committed Aug 2, 2018
1 parent 81a8609 commit 12ac7ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/add-font-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 12ac7ec

Please sign in to comment.