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