Skip to content

Conversation

@thymikee
Copy link
Member

@thymikee thymikee commented Nov 15, 2019

Summary:

Apparently Gradle returns backslashes on windows for buildscript.sourceFile.toString(): a3a70a1#r35970970. We need to account for that

Test Plan:

Both are supported:

/node_modules/@react-native-community/cli-platform-android/
\node_modules\@react-native-community\cli-platform-android\

@thymikee
Copy link
Member Author

cc @miginmrs can you verify?

thymikee referenced this pull request Nov 15, 2019
* feat: run npx from JS app dir

* improve comment

* use .sourceFile

* extract getCommandOutput

* better errors

* apply feedback
@thymikee thymikee force-pushed the fix/windows-jsappdir branch from e6a4909 to 41f7e25 Compare November 15, 2019 12:00
@thymikee thymikee force-pushed the fix/windows-jsappdir branch from 41f7e25 to cea5f2e Compare November 15, 2019 12:00
@thymikee thymikee changed the title fix: jsAppDir on windows fix: jsAppDir on Windows Nov 15, 2019
@grabbou
Copy link
Member

grabbou commented Nov 15, 2019

With the tests failing, how one should verify that?

@thymikee
Copy link
Member Author

Tests don't run Android code, only init. You'll need a Windows machine, yarn link packages and run run-android on a sample project with linked CLI

@grabbou grabbou merged commit f9322a3 into master Nov 15, 2019
@thymikee thymikee deleted the fix/windows-jsappdir branch February 6, 2020 08:52
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