Skip to content

Conversation

@lior-frezi
Copy link
Contributor

Summary:

Following my PR from yesterday #572 , I forgot to include the --projectRoot option descriptor in the PR, which makes it non usable or documented in --help. This PR fixes it.

i also went ahead and added path.resolve to the parsing of it, and of --watchFolders.

Test Plan:

try using the cli start with custom project root set in metro config, it should load from the custom root. try using the cli start with --projectRoot that point to another directory (you can also check for relative path), it should override the metro config. try using the cli with a --watchFolders with relative paths, the folders you specified should be resolved and merged to those in the metro config.

Copy link
Member

@thymikee thymikee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lior-frezi
Copy link
Contributor Author

done

@thymikee thymikee merged commit 24061f1 into react-native-community:master Jul 30, 2019
thymikee added a commit that referenced this pull request Aug 1, 2019
* origin/master:
  imp: optimize gradle code generation (#603)
  v2.8.2
  fix: corrects `srcDirs` to be compatible with Kotlin projects (#602)
  v2.8.1
  fix: fallback to default terminal if wrong one passed (#601)
  fix: adding back `projectRoot` to option (#588)
  fix: init run instructions to show workspace (#566)

Specify port to listen on

#### `--projectRoot [list]`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this isn't actually a list is it? looks like it's just forwarded to path.resolve() which doesn't take a list

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, it's a string. Mind sending a PR?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mmerickel mmerickel mentioned this pull request Aug 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants