Skip to content

Commit 555f84a

Browse files
committed
fix: fix incorrect local library prompt. closes #830
1 parent 92fad2c commit 555f84a

File tree

1 file changed

+3
-2
lines changed
  • packages/create-react-native-library/src/utils

1 file changed

+3
-2
lines changed

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ export async function promptLocalLibrary(argv: Args): Promise<boolean> {
1313
return argv.local;
1414
}
1515

16-
const hasPackageJson = findAppPackageJsonPath() !== null;
17-
if (!hasPackageJson) {
16+
const packageJsonPath = await findAppPackageJsonPath();
17+
18+
if (packageJsonPath === null) {
1819
return false;
1920
}
2021

0 commit comments

Comments
 (0)