diff --git a/build/continuous-deploy-fingerprint/index.js b/build/continuous-deploy-fingerprint/index.js index 92a03de41..31ccf05d2 100644 --- a/build/continuous-deploy-fingerprint/index.js +++ b/build/continuous-deploy-fingerprint/index.js @@ -42390,6 +42390,7 @@ exports.getPullRequestFromGitCommitShaAsync = getPullRequestFromGitCommitShaAsyn Object.defineProperty(exports, "__esModule", ({ value: true })); exports.loadProjectConfig = void 0; const exec_1 = __nccwpck_require__(1514); +const io_1 = __nccwpck_require__(7436); /** * Load the Expo app project config in the given directory. * This runs `expo config` command instead of using `@expo/config` directly, @@ -42398,7 +42399,8 @@ const exec_1 = __nccwpck_require__(1514); async function loadProjectConfig(cwd) { let stdout = ''; try { - ({ stdout } = await (0, exec_1.getExecOutput)('npx', ['expo', 'config', '--json', '--type', 'public'], { + const cmd = await Promise.any([(0, io_1.which)('bunx'), (0, io_1.which)('npx')]); + ({ stdout } = await (0, exec_1.getExecOutput)(cmd, ['expo', 'config', '--json', '--type', 'public'], { cwd, silent: true, })); @@ -44610,7 +44612,8 @@ exports.continuousDeployFingerprintAction = continuousDeployFingerprintAction; async function getFingerprintHashForPlatformAsync({ cwd, platform, }) { try { const extraArgs = (0, core_1.isDebug)() ? ['--debug'] : []; - const { stdout } = await (0, exec_1.getExecOutput)('npx', ['expo-updates', 'fingerprint:generate', '--platform', platform, ...extraArgs], { + const cmd = await Promise.any([(0, io_1.which)('bunx'), (0, io_1.which)('npx')]); + const { stdout } = await (0, exec_1.getExecOutput)(cmd, ['expo-updates', 'fingerprint:generate', '--platform', platform, ...extraArgs], { cwd, silent: !(0, core_1.isDebug)(), }); diff --git a/build/preview-build/index.js b/build/preview-build/index.js index 155c0f10e..3c9c9a691 100644 --- a/build/preview-build/index.js +++ b/build/preview-build/index.js @@ -90057,6 +90057,7 @@ exports.installPackage = installPackage; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.loadProjectConfig = void 0; const exec_1 = __nccwpck_require__(1514); +const io_1 = __nccwpck_require__(7436); /** * Load the Expo app project config in the given directory. * This runs `expo config` command instead of using `@expo/config` directly, @@ -90065,7 +90066,8 @@ const exec_1 = __nccwpck_require__(1514); async function loadProjectConfig(cwd) { let stdout = ''; try { - ({ stdout } = await (0, exec_1.getExecOutput)('npx', ['expo', 'config', '--json', '--type', 'public'], { + const cmd = await Promise.any([(0, io_1.which)('bunx'), (0, io_1.which)('npx')]); + ({ stdout } = await (0, exec_1.getExecOutput)(cmd, ['expo', 'config', '--json', '--type', 'public'], { cwd, silent: true, })); diff --git a/build/preview/index.js b/build/preview/index.js index eeeb74560..5a6bce1a7 100644 --- a/build/preview/index.js +++ b/build/preview/index.js @@ -42598,6 +42598,7 @@ exports.getPullRequestFromGitCommitShaAsync = getPullRequestFromGitCommitShaAsyn Object.defineProperty(exports, "__esModule", ({ value: true })); exports.loadProjectConfig = void 0; const exec_1 = __nccwpck_require__(1514); +const io_1 = __nccwpck_require__(7436); /** * Load the Expo app project config in the given directory. * This runs `expo config` command instead of using `@expo/config` directly, @@ -42606,7 +42607,8 @@ const exec_1 = __nccwpck_require__(1514); async function loadProjectConfig(cwd) { let stdout = ''; try { - ({ stdout } = await (0, exec_1.getExecOutput)('npx', ['expo', 'config', '--json', '--type', 'public'], { + const cmd = await Promise.any([(0, io_1.which)('bunx'), (0, io_1.which)('npx')]); + ({ stdout } = await (0, exec_1.getExecOutput)(cmd, ['expo', 'config', '--json', '--type', 'public'], { cwd, silent: true, })); diff --git a/bun.lockb b/bun.lockb index 71221f0ce..a09eb4f37 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/src/actions/continuous-deploy-fingerprint.ts b/src/actions/continuous-deploy-fingerprint.ts index d5e97d815..3a5101dd1 100644 --- a/src/actions/continuous-deploy-fingerprint.ts +++ b/src/actions/continuous-deploy-fingerprint.ts @@ -112,8 +112,9 @@ async function getFingerprintHashForPlatformAsync({ }): Promise { try { const extraArgs = isDebug() ? ['--debug'] : []; + const cmd = await Promise.any([which('bunx'), which('npx')]); const { stdout } = await getExecOutput( - 'npx', + cmd, ['expo-updates', 'fingerprint:generate', '--platform', platform, ...extraArgs], { cwd, diff --git a/src/project.ts b/src/project.ts index 24f722873..26dbb93c3 100644 --- a/src/project.ts +++ b/src/project.ts @@ -1,4 +1,5 @@ import { getExecOutput } from '@actions/exec'; +import { which } from '@actions/io'; import { ExpoConfig } from '@expo/config'; /** @@ -10,7 +11,8 @@ export async function loadProjectConfig(cwd: string): Promise { let stdout = ''; try { - ({ stdout } = await getExecOutput('npx', ['expo', 'config', '--json', '--type', 'public'], { + const cmd = await Promise.any([which('bunx'), which('npx')]); + ({ stdout } = await getExecOutput(cmd, ['expo', 'config', '--json', '--type', 'public'], { cwd, silent: true, }));