Skip to content

Commit

Permalink
[cli] remove --dev-client prebuild side effect (expo#23121)
Browse files Browse the repository at this point in the history
# Why

the `--dev-client` is deprecated in sdk 49

# How

remove the side effect of adding `--dev-client` when prebuild

# Test Plan

ci pass
  • Loading branch information
Kudo authored Jun 27, 2023
1 parent 4a7bfa1 commit 4690f8c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions packages/@expo/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

### 💡 Others

- Removed prebuild side effect that adding `--dev-client` to the npm start script. ([#23121](https://github.com/expo/expo/pull/23121) by [@kudo](https://github.com/kudo))

## 0.10.3 — 2023-06-27

### 🐛 Bug fixes
Expand Down
1 change: 0 additions & 1 deletion packages/@expo/cli/e2e/__tests__/prebuild-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ it(
expect(pkg.scripts).toStrictEqual({
android: 'expo run:android',
ios: 'expo run:ios',
start: 'expo start --dev-client',
});

// If this changes then everything else probably changed as well.
Expand Down
3 changes: 0 additions & 3 deletions packages/@expo/cli/src/prebuild/updatePackageJson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,6 @@ function updatePkgScripts({ pkg }: { pkg: PackageJSONConfig }) {
if (!pkg.scripts) {
pkg.scripts = {};
}
if (!pkg.scripts.start?.includes('--dev-client')) {
pkg.scripts.start = 'expo start --dev-client';
}
if (!pkg.scripts.android?.includes('run')) {
pkg.scripts.android = 'expo run:android';
}
Expand Down

0 comments on commit 4690f8c

Please sign in to comment.