Skip to content

Commit

Permalink
[eas-cli] use correct app config for no gh init:onboarding flow (#2397
Browse files Browse the repository at this point in the history
)

* [eas-cli] use correct app config for no gh `init:onboarding` flow

* update CHANGELOG.md
  • Loading branch information
szdziedzic authored May 28, 2024
1 parent 466339b commit 3ed5e78
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ This is the log of notable changes to EAS CLI and related packages.

### 🐛 Bug fixes

- Use the correct app config for no GitHub flow in `init:onboarding`. ([#2397](https://github.com/expo/eas-cli/pull/2397) by [@szdziedzic](https://github.com/szdziedzic))

### 🧹 Chores

## [9.1.0](https://github.com/expo/eas-cli/releases/tag/v9.1.0) - 2024-05-23
Expand Down
6 changes: 6 additions & 0 deletions packages/eas-cli/src/commands/project/onboarding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,11 @@ async function configureProjectFromBareDefaultExpoTemplateAsync({
);
Log.log();

const baseExpoConfig = JSON.parse(await fs.readFile(path.join(targetDir, 'app.json'), 'utf8'))
.expo as ExpoConfig;

const expoConfig: ExpoConfig = {
...baseExpoConfig,
name: app.name ?? app.slug,
slug: app.slug,
extra: {
Expand All @@ -465,9 +469,11 @@ async function configureProjectFromBareDefaultExpoTemplateAsync({
policy: 'appVersion',
},
ios: {
...baseExpoConfig.ios,
bundleIdentifier,
},
android: {
...baseExpoConfig.android,
package: bundleIdentifier,
},
};
Expand Down

0 comments on commit 3ed5e78

Please sign in to comment.