mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-22 19:48:56 +08:00
Summary: Currently, when the cli tries to determine the package name, it accidentally trims out the entire package name. This makes it appear to the rest of the program as if `react-native link The controller you requested could not be found./my-package` was just `react-native link`. This adds a little regex to prevent that from happening, so that scopes can be passed as parts of packages. Fixes #18766 Pull Request resolved: https://github.com/facebook/react-native/pull/19828 Differential Revision: D8704742 Pulled By: hramos fbshipit-source-id: d8183f9b55e8656b8a0acae842e1361a1f428102
This commit is contained in:
committed by
Facebook Github Bot
parent
5219585ef9
commit
6d65e8b4ed
@@ -106,9 +106,7 @@ const defaultRNConfig = {
|
||||
getDependencyConfig(packageName: string) {
|
||||
const platforms = this.getPlatformConfig();
|
||||
const folder = path.join(process.cwd(), 'node_modules', packageName);
|
||||
const rnpm = getRNPMConfig(
|
||||
path.join(process.cwd(), 'node_modules', packageName),
|
||||
);
|
||||
const rnpm = getRNPMConfig(folder);
|
||||
|
||||
let config = Object.assign({}, rnpm, {
|
||||
assets: findAssets(folder, rnpm.assets),
|
||||
|
||||
Reference in New Issue
Block a user