react-native-update-cli 1.42.0 → 1.42.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/bundle.js CHANGED
@@ -124,15 +124,15 @@ async function runReactNativeBundleCommand({ bundleName, dev, entryFile, outputF
124
124
  };
125
125
  const getRnCli = ()=>{
126
126
  try {
127
- // rn >= 0.75
128
- cliPath = require.resolve('@react-native-community/cli/build/bin.js', {
127
+ // rn < 0.75
128
+ cliPath = require.resolve('react-native/local-cli/cli.js', {
129
129
  paths: [
130
130
  process.cwd()
131
131
  ]
132
132
  });
133
133
  } catch (e) {
134
- // rn < 0.75
135
- cliPath = require.resolve('react-native/local-cli/cli.js', {
134
+ // rn >= 0.75
135
+ cliPath = require.resolve('@react-native-community/cli/build/bin.js', {
136
136
  paths: [
137
137
  process.cwd()
138
138
  ]
@@ -169,7 +169,7 @@ function saveToLocal(originPath, destName) {
169
169
  }
170
170
  async function getLatestVersion(pkgNames) {
171
171
  return (0, _latestversion.default)(pkgNames, {
172
- useCache: true,
172
+ // useCache: true,
173
173
  requestOptions: {
174
174
  timeout: 2000
175
175
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-update-cli",
3
- "version": "1.42.0",
3
+ "version": "1.42.1",
4
4
  "description": "Command tools for javaScript updater with `pushy` service for react native apps.",
5
5
  "main": "index.js",
6
6
  "bin": {
package/src/bundle.ts CHANGED
@@ -102,13 +102,13 @@ async function runReactNativeBundleCommand({
102
102
 
103
103
  const getRnCli = () => {
104
104
  try {
105
- // rn >= 0.75
106
- cliPath = require.resolve('@react-native-community/cli/build/bin.js', {
105
+ // rn < 0.75
106
+ cliPath = require.resolve('react-native/local-cli/cli.js', {
107
107
  paths: [process.cwd()],
108
108
  });
109
109
  } catch (e) {
110
- // rn < 0.75
111
- cliPath = require.resolve('react-native/local-cli/cli.js', {
110
+ // rn >= 0.75
111
+ cliPath = require.resolve('@react-native-community/cli/build/bin.js', {
112
112
  paths: [process.cwd()],
113
113
  });
114
114
  }
@@ -158,7 +158,7 @@ export function saveToLocal(originPath: string, destName: string) {
158
158
 
159
159
  async function getLatestVersion(pkgNames: string[]) {
160
160
  return latestVersion(pkgNames, {
161
- useCache: true,
161
+ // useCache: true,
162
162
  requestOptions: {
163
163
  timeout: 2000,
164
164
  },