Skip to content

Commit 5a0fbfa

Browse files
committed
fix: use @latest for the npx commands
1 parent 25bbce4 commit 5a0fbfa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/create-react-native-library/src/utils/generateExampleApp.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ export default async function generateExampleApp({
4747
type === 'native'
4848
? // `npx react-native init <projectName> --directory example --skip-install`
4949
[
50-
'react-native',
50+
'react-native@latest',
5151
'init',
5252
`${projectName}Example`,
5353
'--directory',
5454
directory,
5555
'--skip-install',
5656
]
5757
: // `npx create-expo-app example --no-install`
58-
['create-expo-app', directory, '--no-install'];
58+
['create-expo-app@latest', directory, '--no-install'];
5959

6060
const child = spawn('npx', ['--yes', ...args], {
6161
cwd: dest,

0 commit comments

Comments
 (0)