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
This commit is contained in:
parent
15bf2c57b8
commit
8ad748ac7d
|
@ -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, {
|
||||
|
|
Loading…
Reference in New Issue