Commit 2ab90e5
committed
fix(windows): keep shebang scripts LF on checkout
The previous .gitattributes only pinned *.sh/*.bash to LF. With
core.autocrlf=true a Windows clone still checked out bin/cli.js and
scripts/*.mjs with CRLF, so the '#!/usr/bin/env node' line kept a
trailing \r: Vite's shebang strip missed it and importing
scripts/restart.mjs from a test failed with 'Invalid or unexpected
token'. Pin *.js/*.mjs/*.cjs/*.py to LF too.1 parent d8591d0 commit 2ab90e5
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
7 | 12 | | |
8 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
9 | 18 | | |
10 | 19 | | |
11 | 20 | | |
| |||
0 commit comments