We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92fad2c commit 555f84aCopy full SHA for 555f84a
packages/create-react-native-library/src/utils/local.ts
@@ -13,8 +13,9 @@ export async function promptLocalLibrary(argv: Args): Promise<boolean> {
13
return argv.local;
14
}
15
16
- const hasPackageJson = findAppPackageJsonPath() !== null;
17
- if (!hasPackageJson) {
+ const packageJsonPath = await findAppPackageJsonPath();
+
18
+ if (packageJsonPath === null) {
19
return false;
20
21
0 commit comments