Skip to content

Commit 02b6935

Browse files
committed
Use relative path to CLI instead of "npx"
1 parent 44471b0 commit 02b6935

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/host/android/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,13 @@ task checkHermesOverride {
150150
}
151151
}
152152

153+
def cliPath = file("../bin/react-native-node-api.mjs")
154+
153155
// Custom task to fetch jniLibs paths via CLI
154156
task linkNodeApiModules {
155157
doLast {
156158
exec {
157-
// TODO: Support --strip-path-suffix
158-
commandLine 'npx', 'react-native-node-api', 'link', '--android', rootProject.rootDir.absolutePath
159+
commandLine cliPath, 'link', '--android', rootProject.rootDir.absolutePath
159160
standardOutput = System.out
160161
errorOutput = System.err
161162
// Enable color output

0 commit comments

Comments
 (0)