1
0
mirror of https://gitcode.com/github-mirrors/react-native-update-cli.git synced 2025-10-31 14:53:11 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Refactor Hermes option handling in CLI and bundle commands; rename 'disableHermes' to 'hermes' for clarity and update related logic in bundle.ts and provider.ts.

This commit is contained in:
sunnylqm
2025-10-25 11:20:09 +08:00
parent 15c8052459
commit f8edbb8083
7 changed files with 31 additions and 21 deletions

View File

@@ -53,7 +53,7 @@ export const bundleModule: CLIModule = {
taro = false,
expo = false,
rncli = false,
disableHermes = false,
hermes = false,
output,
} = context.options;
@@ -73,7 +73,7 @@ export const bundleModule: CLIModule = {
taro,
expo,
rncli,
disableHermes,
hermes,
intermediaDir: '${tempDir}/intermedia/${platform}',
output: '${tempDir}/output/${platform}.${time}.ppk',
};
@@ -170,10 +170,10 @@ export const bundleModule: CLIModule = {
default: false,
description: 'Use React Native CLI',
},
disableHermes: {
hermes: {
hasValue: false,
default: false,
description: 'Disable Hermes',
description: 'Force enable Hermes',
},
name: {
hasValue: true,