File: .gitattributes

package info (click to toggle)
node-yarnpkg 4.1.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 24,752 kB
  • sloc: javascript: 38,953; ansic: 26,035; cpp: 7,247; sh: 2,829; makefile: 724; perl: 493
file content (24 lines) | stat: -rw-r--r-- 1,235 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# This line does two things:
# - forces git to use LF
# - tell git to guess whether files are text or binary
*                       text=auto eol=lf

# Mark generated files as binary to prevent git from trying to merge them
/.pnp.*                                                 binary linguist-generated
packages/yarnpkg-pnp/sources/esm-loader/built-loader.js binary linguist-generated
packages/yarnpkg-pnp/sources/hook.js                    binary linguist-generated
packages/yarnpkg-core/sources/worker-zip/index.js       binary linguist-generated
packages/yarnpkg-libzip/sources/libzipAsync.js          binary linguist-generated
packages/yarnpkg-libzip/sources/libzipSync.js           binary linguist-generated

# Set the language for these files to json5 to ensure GitHub doesn't show the comments as errors
/.vscode/*.json         linguist-language=JSON5

# Hide .yarn and docs from GitHub's language detection
/.yarn/**               linguist-vendored
/docs/**                linguist-documentation

# Mark built javascript binaries as generated
# Without this, the repo is marked as >90% javascript, while most code is actually typescript
/packages/*/bin/**/*.js linguist-generated
/packages/*/lib/*.js    linguist-generated