From 85b69538cdf1967bda46d883a18e32605d135720 Mon Sep 17 00:00:00 2001 From: Joe Barnett Date: Sat, 10 Apr 2021 08:24:38 +0100 Subject: [PATCH 1/2] fix #9 by using LF line-endings in working directory this ensures that the bin scripts in the published package are unix-compatible --- .gitattributes | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6313b56 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf From 949daf140f0c2372dc80e0642f7a90e635b254a0 Mon Sep 17 00:00:00 2001 From: ensconced Date: Sat, 10 Apr 2021 13:18:55 +0100 Subject: [PATCH 2/2] explain line-ending setting --- .gitattributes | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitattributes b/.gitattributes index 6313b56..1946a3b 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,4 @@ +# we want to ensure we're using LF instead of CR+LF as line-endings +# in the published package, otherwise the bin scripts won't work with +# yarn - see https://github.com/yarnpkg/yarn/issues/5480 * text=auto eol=lf