Repository navigation
Expand file tree
/
Copy path.gitattributes
More file actions
37 lines (32 loc) · 2.2 KB
/
Copy path.gitattributes
File metadata and controls
37 lines (32 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# pnpm 12 briefly had a bug (pnpm/pnpm#14557) where it parsed patch files with a
# Rust patch parser that rejects a carriage return in the `---`/`+++` header lines.
# Git for Windows checks text files out with CRLF by default, which broke
# `pnpm install` on the Windows release smoke-test.
# This guarantees that we keep patch files LF everywhere.
patches/*.patch text eol=lf
# error-tag-stability.unit.test.ts splits this fixture on newlines to diff it
# against a live-scanned tag set. Pin it to LF so a CRLF checkout on Windows
# can't leave a trailing `\r` on every entry and make every tag mismatch.
apps/cli/src/shared/telemetry/__fixtures__/error-tags.txt text eol=lf
# The Windows smoke-test runs this under Git Bash; a CRLF checkout breaks `set -euo pipefail`.
.github/scripts/wait-for-npm-version.sh text eol=lf
# Generated artifacts. `linguist-generated` keeps these out of GitHub's language
# statistics and collapses them in pull request diffs -- they are build output to
# be regenerated, not code to review, and together they outweigh the hand-written
# source. The attribute is GitHub-only: git, CI, and local diffs are unaffected.
# Collapsed is not hidden. The lockfile does carry changes worth reading --
# a dependency substitution -- and stays one click away in review.
# Regeneration is owned by the `generate` turbo task, whose `outputs` in
# turbo.json are the source of truth for this list. Only the generated files
# are listed, not their hand-written inputs. apps/docs/content/docs/commands/
# is generated too but gitignored, so it needs no entry.
packages/api/src/generated/* linguist-generated=true
packages/api/scripts/openapi-source.json linguist-generated=true
packages/stack/src/functions/generated/* text eol=lf linguist-generated=true
apps/cli/src/shared/feedback/database.types.ts linguist-generated=true
apps/docs/public/schemas/** linguist-generated=true
# Lockfiles. Collapsed rather than hidden -- a dependency change is still one
# click away in review, which is the same treatment GitHub gives package-lock.json.
pnpm-lock.yaml linguist-generated=true
# Not a language marker -- this is the service image manifest, not a container build.
apps/cli/src/shared/services/Dockerfile linguist-detectable=false