From 3ec02183ae05f1454b6000bbd478d7a6f4903c4f Mon Sep 17 00:00:00 2001 From: Amjad Masad Date: Fri, 27 Mar 2015 22:11:33 -0700 Subject: [PATCH] Bring back accidentally reverted changes from 89fc8a4d7f9fa1c23ac235e74731beabb3f9594d --- packager.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packager.js b/packager.js index 119336ed..9503df6e 100644 --- a/packager.js +++ b/packager.js @@ -69,7 +69,11 @@ if (options.assetRoots) { options.assetRoots = options.assetRoots.split(','); } } else { - options.assetRoots = [path.resolve(__dirname, '..')]; + if (__dirname.match(/node_modules\/react-native\/packager$/)) { + options.assetRoots = [path.resolve(__dirname, '../../..')]; + } else { + options.assetRoots = [path.resolve(__dirname, '..')]; + } } console.log('\n' +