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 +4 -4
- package/lib/utils/index.js +1 -1
- package/package.json +1 -1
- package/src/bundle.ts +4 -4
- package/src/utils/index.ts +1 -1
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
|
|
128
|
-
cliPath = require.resolve('
|
|
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
|
|
135
|
-
cliPath = require.resolve('react-native/
|
|
134
|
+
// rn >= 0.75
|
|
135
|
+
cliPath = require.resolve('@react-native-community/cli/build/bin.js', {
|
|
136
136
|
paths: [
|
|
137
137
|
process.cwd()
|
|
138
138
|
]
|
package/lib/utils/index.js
CHANGED
package/package.json
CHANGED
package/src/bundle.ts
CHANGED
|
@@ -102,13 +102,13 @@ async function runReactNativeBundleCommand({
|
|
|
102
102
|
|
|
103
103
|
const getRnCli = () => {
|
|
104
104
|
try {
|
|
105
|
-
// rn
|
|
106
|
-
cliPath = require.resolve('
|
|
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
|
|
111
|
-
cliPath = require.resolve('react-native/
|
|
110
|
+
// rn >= 0.75
|
|
111
|
+
cliPath = require.resolve('@react-native-community/cli/build/bin.js', {
|
|
112
112
|
paths: [process.cwd()],
|
|
113
113
|
});
|
|
114
114
|
}
|
package/src/utils/index.ts
CHANGED
|
@@ -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
|
},
|