nx-labs icon indicating copy to clipboard operation
nx-labs copied to clipboard

Remove expo-cli in favor of @expo/cli dependency for @nrwl/expo

Open devcauldron opened this issue 3 years ago • 2 comments

One of the updates in Expo 46 was to make @expo/cli package a locally installed bin package and remove the need to globally install expo-cli per this blog announcement. Here is the warning provided by expo-cli anytime it is run:

This command is being executed with the global Expo CLI. Learn more: https://blog.expo.dev/the-new-expo-cli-f4250d8e3421
To use the local CLI instead (recommended in SDK 46 and higher), run:
› npx expo start

@expo/cli is a dependency of the [email protected] package so it will always be installed and available.

Even better, it is tied to the version of the Expo SDK that you are running unlike expo-cli which maintains a compatible version with all previous versions of the Expo SDK (further bloating it).

Unfortunately, when I attempt to remove expo-cli from my project, none of the executors will run as they cannot find the expo-cli package.

Please change the dependencies in the @nrwl/expo package to use the new @expo/cli to get ahead of the deprecation of the global expo-cli package in the upcoming versions of the Expo SDK.

devcauldron avatar Sep 28 '22 00:09 devcauldron

Duplicate of nrwl/nx#12154

impleri avatar Oct 12 '22 15:10 impleri

thanks for linking @impleri - I didn't realize it was being managed in the other repo

devcauldron avatar Oct 12 '22 20:10 devcauldron