| #
87669a95 |
| 15-Aug-2023 |
Mark Lawlor <[email protected]> |
feat(cli): add `expo typescript` command (#23642)
# Why
The command serves two purposes
- Allow users to manually start the Expo Typescript bootstrap process
- Generate Expo Router types wi
feat(cli): add `expo typescript` command (#23642)
# Why
The command serves two purposes
- Allow users to manually start the Expo Typescript bootstrap process
- Generate Expo Router types within CI environments.
Unlike the automatic Typescript detection, this command will bypass
prompts and simply enable Typescript support.
# How
Reuses `TypeScriptProjectPrerequisite` and the Typescript services from
`MetroBundlerDevServer`.
This PR also modifies the
`MetroBundlerDevServer.startTypeScriptServices()` to run without a
started server (so file watching will be disabled)
# Test Plan
# Checklist
<!--
Please check the appropriate items below if they apply to your diff.
This is required for changes to Expo modules.
-->
- [ ] 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).
show more ...
|