-
Notifications
You must be signed in to change notification settings - Fork 477
Warn before ejecting that some config needs to be set on dynamic config #1761
Conversation
We have some e2e tests which currently attempt to lock the old app.json modification behavior down, be sure to update those to ensure these use-cases are air-tight expo-cli/packages/expo-cli/src/commands/__tests__/upgrade-test.ts Lines 292 to 323 in 8678009
|
appJson.expo.ios = appJson.expo.ios ?? {}; | ||
appJson.expo.ios.bundleIdentifier = bundleIdentifier; | ||
if (entryPoint) { | ||
warnings.push(['entryPoint', 'Remove the entryPoint field.', undefined]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be the only warning that isn't covered now
if (exp.entryPoint) { | ||
delete exp.entryPoint; | ||
log(`- expo.entryPoint is not needed and has been removed.`); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've modified this so the entryPoint is simply deleted upon ejection. In a static config, this should be persisted, otherwise it won't matter because every eject will delete the field.
This PR adds some checks before proceeding with ejecting to ensure that it's compatible with app.config.[ts/js]