Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fa5-upgrade fix #803

Merged
merged 3 commits into from
Aug 2, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Should fix fa5-upgrade not finding package.json
  • Loading branch information
hampustagerud committed Aug 1, 2018
commit 7836fcd625aae67dc8ca34fd82a73c13c9dd33e7
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