Commit 2553e24
authored
fix: ensure 'invokeLibraryCodegen' task executes 'npx' correctly on windows (#707)
@Important
feel free to close it if it only fails because a local configuration is
incorrect.
### Summary
Fixed the error "Execution failed for task ':app:invokeLibraryCodegen'"
when running yarn android in the Fabric View Library. The
invokeLibraryCodegen task now correctly executes npx on all platforms by
checking the OS and using cmd or sh accordingly.
### Test plan
Before the fix: Run `yarn android` on example forlder and observe the
build failing with the mentioned error.
Apply the fix: Update the build script with the provided solution.
After the fix: Run yarn android again and confirm that the build
succeeds without errors.1 parent bcccda5 commit 2553e24
File tree
1 file changed
+8
-2
lines changed- packages/create-react-native-library/src/exampleApp
1 file changed
+8
-2
lines changedLines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
15 | 21 | | |
16 | 22 | | |
17 | 23 | | |
| |||
0 commit comments