From 8ad748ac7d6c27e3d89706a5542e62fd088ba8d2 Mon Sep 17 00:00:00 2001 From: Kureev Alexey Date: Sun, 31 Jul 2016 23:26:17 -0700 Subject: [PATCH] Fix scoped modules Summary: see https://github.com/facebook/react-native/issues/8623 **Background:** Back in a days, one buggy patch sneaked into rnpm master. It was intended to fix `react-native-fbsdk` installation for version 0.1.0 (not required in version 0.3.0). Nowadays, we see that this patch break scoped modules `like/this`, so this PR fixes it (basically, reverting the patch). **Test plan (required)** - [x] Try to link unscoped react-native package - [x] Try to link scoped react-native package **Code formatting** Look around. Match the style of the rest of the codebase. See also the simple [style guide](https://github.com/facebook/react-native/blob/master/CONTRIBUTING.md#style-guide). For more info, see the ["Pull Requests" section of our "Contributing" guidelines](https://github.com/facebook/react-native/blob/master/CONTRIBUTING.md#pull-requests). Closes https://github.com/facebook/react-native/pull/9118 Differential Revision: D3648488 fbshipit-source-id: 1891086ac79a89c888631592c966a8b33fd9c9fd --- local-cli/rnpm/core/src/config/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local-cli/rnpm/core/src/config/index.js b/local-cli/rnpm/core/src/config/index.js index ac7573510..3c52ab998 100644 --- a/local-cli/rnpm/core/src/config/index.js +++ b/local-cli/rnpm/core/src/config/index.js @@ -31,7 +31,7 @@ exports.getProjectConfig = function getProjectConfig() { exports.getDependencyConfig = function getDependencyConfig(packageName) { const folder = path.join(process.cwd(), 'node_modules', packageName); const rnpm = getRNPMConfig( - path.join(process.cwd(), 'node_modules', packageName.split('/')[0]) + path.join(process.cwd(), 'node_modules', packageName) ); return Object.assign({}, rnpm, {