Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(metro-config): add missing glob@^7.2.3 dependency #26020

Merged
merged 2 commits into from
Dec 19, 2023

Conversation

byCedric
Copy link
Member

@byCedric byCedric commented Dec 19, 2023

Why

@expo/metro-config does not have a direct dependency reference to glob, yet we import it in src/getWatchFolders.ts. This breaks isolated modules.

There is no (implicit) dependency chain, the only unrelated chain exists from a direct project dependency:

  • react-native → @react-native-community/cli-platform-android → glob

How

  • Added glob@^7.2.3 as dependency to @expo/metro-config

Test Plan

See if yarn typecheck has any typescript issues.

Checklist

@expo-bot expo-bot added bot: suggestions ExpoBot has some suggestions bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Dec 19, 2023
@byCedric byCedric force-pushed the @bycedric/metro-config/import-glob branch from c491a04 to 6aea93c Compare December 19, 2023 21:53
@byCedric byCedric merged commit 25f86f5 into main Dec 19, 2023
9 checks passed
@byCedric byCedric deleted the @bycedric/metro-config/import-glob branch December 19, 2023 22:36
byCedric added a commit that referenced this pull request Dec 19, 2023
# Why

`@expo/metro-config` does not have a direct dependency reference to
`glob`, yet we import it in
[`src/getWatchFolders.ts`](https://github.com/expo/expo/blob/8a86278f9013847bb26b1db83b3ce71a655c0c8a/packages/%40expo/metro-config/src/getWatchFolders.ts#L3).
This breaks isolated modules.

There is _no_ (implicit) dependency chain, the only unrelated chain
exists from a direct project dependency:

- `react-native → @react-native-community/cli-platform-android → glob`

# How

- Added `glob@^7.2.3` as dependency to `@expo/metro-config`

# Test Plan

See if `yarn typecheck` has any typescript issues.

# Checklist

<!--
Please check the appropriate items below if they apply to your diff.
This is required for changes to Expo modules.
-->

- [x] Documentation is up to date to reflect these changes (eg:
https://docs.expo.dev and README.md).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
- [ ] This diff will work correctly for `npx expo prebuild` & EAS Build
(eg: updated a module plugin).
@brentvatne brentvatne added the published Changes from the PR have been published to npm label Dec 19, 2023
onizam95 pushed a commit to onizam95/expo-av-drm that referenced this pull request Jan 15, 2024
# Why

`@expo/metro-config` does not have a direct dependency reference to
`glob`, yet we import it in
[`src/getWatchFolders.ts`](https://github.com/expo/expo/blob/8a86278f9013847bb26b1db83b3ce71a655c0c8a/packages/%40expo/metro-config/src/getWatchFolders.ts#L3).
This breaks isolated modules.

There is _no_ (implicit) dependency chain, the only unrelated chain
exists from a direct project dependency:

- `react-native → @react-native-community/cli-platform-android → glob`

# How

- Added `glob@^7.2.3` as dependency to `@expo/metro-config`

# Test Plan

See if `yarn typecheck` has any typescript issues.

# Checklist

<!--
Please check the appropriate items below if they apply to your diff.
This is required for changes to Expo modules.
-->

- [x] Documentation is up to date to reflect these changes (eg:
https://docs.expo.dev and README.md).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
- [ ] This diff will work correctly for `npx expo prebuild` & EAS Build
(eg: updated a module plugin).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: fingerprint compatible bot: passed checks ExpoBot has nothing to complain about published Changes from the PR have been published to npm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants