Commit 32ffacc
fix: use require.resolve for package root instead of __dirname
__dirname resolves differently from src/ vs lib/commonjs/ after
compilation. Using require.resolve to find the package.json ensures
the native module's android/build.gradle is found correctly regardless
of the build output directory structure.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 5eb1409 commit 32ffacc
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
82 | 86 | | |
83 | | - | |
| 87 | + | |
84 | 88 | | |
85 | 89 | | |
86 | 90 | | |
| |||
0 commit comments