From d2aaf6df2d11628a42072d3e9cba03e2aec649ac Mon Sep 17 00:00:00 2001 From: Tom Underhill Date: Fri, 1 May 2020 14:05:53 -0700 Subject: [PATCH] react-native-macos npm publishing with CRLF text files (#331) * Update scripts to publish react-native-macos-init * Clean up merge markers * Restored ios:macos RNTester parity except for InputAccessoryView. * Revert "Restored ios:macos RNTester parity except for InputAccessoryView." This reverts commit 5a67ae06b01301ac43533e7e20dd7fed24a0937f. * Force text files to LF. --- .gitattributes | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/.gitattributes b/.gitattributes index e41d05ed52..fc3b2e05a7 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,7 +1,22 @@ -# Force LF line endings for Bash scripts. On Windows the rest of the source -# files will typically have CR+LF endings (Git default on Windows), but Bash -# scripts need to have LF endings to work (under Cygwin), thus override to force -# that. -gradlew text eol=lf -*.sh text eol=lf +# Force LF line endings for text files. +# When checked out on Windows machines the default is to add CRLF to text files +# which causes them to be published to npm packages with CRLF. +# Some script files fail to execute on Mac with CRLF. *.command text eol=lf +*.cpp text eol=lf +*.entitlements text eol=lf +*.h text eol=lf +*.js text eol=lf +*.json text eol=lf +*.m text eol=lf +*.mm text eol=lf +*.pbxproj text eol=lf +*.plist text eol=lf +*.podspec text eol=lf +*.sh text eol=lf +*.storyboard text eol=lf +*.xcconfig text eol=lf +*.xcscheme text eol=lf +*.xib text eol=lf +gradlew text eol=lf +Podfile text eol=lf