mirror of
https://gitcode.com/github-mirrors/react-native-update-cli.git
synced 2025-09-18 02:16:11 +08:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
0f8cf3c399 | ||
![]() |
6a0d82c7a5 |
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react-native-update-cli",
|
||||
"version": "1.15.0",
|
||||
"version": "1.16.0",
|
||||
"description": "Command tools for javaScript updater with `pushy` service for react native apps.",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
|
@@ -173,12 +173,12 @@ async function compileHermesByteCode(
|
||||
) {
|
||||
console.log(`Hermes enabled, now compiling to hermes bytecode:\n`);
|
||||
// >= rn 0.69
|
||||
let hermesCommand = require.resolve(
|
||||
`react-native/sdks/hermesc/${getHermesOSBin()}/hermesc`,
|
||||
{
|
||||
paths: [process.cwd()],
|
||||
},
|
||||
const rnDir = path.dirname(require.resolve('react-native'));
|
||||
const hermesCommand = path.join(
|
||||
rnDir,
|
||||
`/sdks/hermesc/${getHermesOSBin()}/hermesc`,
|
||||
);
|
||||
|
||||
// < rn 0.69
|
||||
if (!fs.existsSync(hermesCommand)) {
|
||||
const hermesPackage = fs.existsSync('node_modules/hermes-engine')
|
||||
|
Reference in New Issue
Block a user