From 07513827c124df6e414ea68f8722781ab4699203 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Burak=20Gu=CC=88ner?= <burak.guner@callstack.com>
Date: Mon, 16 Dec 2024 15:30:33 +0300
Subject: [PATCH] docs: update comment

---
 .../src/exampleApp/generateExampleApp.ts                       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/packages/create-react-native-library/src/exampleApp/generateExampleApp.ts b/packages/create-react-native-library/src/exampleApp/generateExampleApp.ts
index 1c00eb11..076051f7 100644
--- a/packages/create-react-native-library/src/exampleApp/generateExampleApp.ts
+++ b/packages/create-react-native-library/src/exampleApp/generateExampleApp.ts
@@ -237,7 +237,8 @@ export default async function generateExampleApp({
     });
   }
 
-  // Sort the deps by name
+  // Sort the deps by name to match behavior of package managers
+  // This way the package.json doesn't get updated when installing deps
   for (const field of ['dependencies', 'devDependencies']) {
     if (pkg[field]) {
       pkg[field] = sortObjectKeys(pkg[field]);