Skip to content

Commit

Permalink
Update bin/expo-setup.js
Browse files Browse the repository at this point in the history
Co-authored-by: Karl Horky <[email protected]>
  • Loading branch information
ProchaLu and karlhorky authored Jan 24, 2025
1 parent de6c878 commit 78bb7ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/expo-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ import { readFile, unlink, writeFile } from 'node:fs/promises';
import { promisify } from 'node:util';
import isPlainObject from 'is-plain-obj';

// Install Prettier to format app.config.ts
// - Keeps installation colocated with its usage for easier maintenance
// - Simplifies cleanup when Expo eventually generates app.config.ts by default
// Install Prettier to format `app.config.ts`, colocated in this script for
// easier removal
//
// TODO: Remove if `create-expo-app` creates `app.config.ts` in future:
// - https://github.com/expo/expo/issues/34357
await promisify(exec)('pnpm add --save-dev prettier');

const { format } = await import('prettier');

const appJsonFilePath = 'app.json';
Expand Down

0 comments on commit 78bb7ef

Please sign in to comment.