From c08c5c0b077f8414ebf7d7649d21fd9d5711d868 Mon Sep 17 00:00:00 2001 From: sunnylqm Date: Thu, 13 Feb 2025 16:13:48 +0800 Subject: [PATCH] fix taro cli path --- package.json | 2 +- src/bundle.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index cfb1097..71bc27f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-update-cli", - "version": "1.40.0-beta.0", + "version": "1.40.0-beta.1", "description": "Command tools for javaScript updater with `pushy` service for react native apps.", "main": "index.js", "bin": { diff --git a/src/bundle.ts b/src/bundle.ts index fc56512..7e42048 100644 --- a/src/bundle.ts +++ b/src/bundle.ts @@ -111,7 +111,7 @@ async function runReactNativeBundleCommand({ const getTaroCli = () => { try { - cliPath = require.resolve('@tarojs/cli/bin/taro.js', { + cliPath = require.resolve('@tarojs/cli/bin/taro', { paths: [process.cwd()], }); } catch (e) {}