Skip to content

Commit 6dd41fb

Browse files
atljsatya164
andauthored
docs
Co-authored-by: Satyajit Sahoo <[email protected]>
1 parent fbf8735 commit 6dd41fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,8 @@ export default async function generateExampleApp({
237237
});
238238
}
239239

240-
// Sort the deps by name
240+
// Sort the deps by name to match behavior of package managers
241+
// This way the package.json doesn't get updated when installing deps
241242
for (const field of ['dependencies', 'devDependencies']) {
242243
if (pkg[field]) {
243244
pkg[field] = sortObjectKeys(pkg[field]);

0 commit comments

Comments
 (0)