From fa762dc7f2a9043e8cdb8c1aeeb52c1a1f7401c0 Mon Sep 17 00:00:00 2001 From: Cristiano Calcagno Date: Fri, 2 Oct 2026 06:56:49 +0200 Subject: [PATCH 1/5] Remove context7.json context7.json configures the external Context7 documentation indexer (added on purpose in #8417). Nothing in this repository reads it. Deleting it may stop or change Context7's indexing of this repository. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Cristiano Calcagno --- context7.json | 49 ------------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 context7.json diff --git a/context7.json b/context7.json deleted file mode 100644 index 07aed6bc75..0000000000 --- a/context7.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "$schema": "https://context7.com/schema/context7.json", - "projectTitle": "ReScript", - "description": "ReScript is a statically typed language for web development that compiles to clean, readable JavaScript, with sound types, fast builds, and seamless JS interop.", - "folders": ["docs", "packages/@rescript/runtime", "tools"], - "url": "https://context7.com/rescript-lang/rescript", - "public_key": "pk_dEopRkFptH4ndnTyOuXEb", - "excludeFolders": [ - "analysis", - "cli", - "compiler", - "lib_dev", - "node_modules", - "rewatch", - "scripts", - "tests", - "docs/changelog", - "docs/docson", - "tools/bin", - "packages/@rescript/*/bin" - ], - "excludeFiles": [ - "AGENTS.md", - "CLAUDE.md", - "CHANGELOG.md", - "CHANGELOG_BS.md", - "CONTRIBUTING.md", - "COPYING", - "COPYING.LESSER", - "CREDITS.md", - "DCO.md", - "LICENSE", - "LICENSE.MIT", - "build-schema.json", - "dune", - "main.ml", - "migrate.ml", - "migrate.mli", - "package.json", - "rescript.json", - "tools.ml", - "transforms.ml", - "version.ml" - ], - "rules": [ - "Use this context for ReScript language APIs, the standard library, and the rescript-tools CLI.", - "For the full language manual, syntax guide, React docs, ecosystem docs, and website-hosted material outside this repository, also consult https://rescript-lang.org/llms.txt." - ] -} From 883bf2c937a1ed7737bba93d9ee57aafb7120966 Mon Sep 17 00:00:00 2001 From: Cristiano Calcagno Date: Fri, 2 Oct 2026 06:57:40 +0200 Subject: [PATCH 2/5] Remove tests/dependencies/.gitattributes The file marks the vendored @rescript/react copy as linguist-vendored. Only GitHub's language statistics read it; nothing in this repository does. Without it, GitHub may count the vendored ReScript sources in the repository's language breakdown. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Cristiano Calcagno --- tests/dependencies/.gitattributes | 1 - 1 file changed, 1 deletion(-) delete mode 100644 tests/dependencies/.gitattributes diff --git a/tests/dependencies/.gitattributes b/tests/dependencies/.gitattributes deleted file mode 100644 index 36eaad9fbd..0000000000 --- a/tests/dependencies/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -* linguist-vendored From 4039c80c779ba4487b614cacc007fadf84072b06 Mon Sep 17 00:00:00 2001 From: Cristiano Calcagno Date: Fri, 2 Oct 2026 22:01:42 +0200 Subject: [PATCH 3/5] Keep context7.json The Context7 indexer still reads it to scope and configure the project's index, so the file stays until that integration is retired. This reverts commit fa762dc7f. Signed-off-by: Cristiano Calcagno Co-Authored-By: Claude Opus 5.5 --- context7.json | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 context7.json diff --git a/context7.json b/context7.json new file mode 100644 index 0000000000..07aed6bc75 --- /dev/null +++ b/context7.json @@ -0,0 +1,49 @@ +{ + "$schema": "https://context7.com/schema/context7.json", + "projectTitle": "ReScript", + "description": "ReScript is a statically typed language for web development that compiles to clean, readable JavaScript, with sound types, fast builds, and seamless JS interop.", + "folders": ["docs", "packages/@rescript/runtime", "tools"], + "url": "https://context7.com/rescript-lang/rescript", + "public_key": "pk_dEopRkFptH4ndnTyOuXEb", + "excludeFolders": [ + "analysis", + "cli", + "compiler", + "lib_dev", + "node_modules", + "rewatch", + "scripts", + "tests", + "docs/changelog", + "docs/docson", + "tools/bin", + "packages/@rescript/*/bin" + ], + "excludeFiles": [ + "AGENTS.md", + "CLAUDE.md", + "CHANGELOG.md", + "CHANGELOG_BS.md", + "CONTRIBUTING.md", + "COPYING", + "COPYING.LESSER", + "CREDITS.md", + "DCO.md", + "LICENSE", + "LICENSE.MIT", + "build-schema.json", + "dune", + "main.ml", + "migrate.ml", + "migrate.mli", + "package.json", + "rescript.json", + "tools.ml", + "transforms.ml", + "version.ml" + ], + "rules": [ + "Use this context for ReScript language APIs, the standard library, and the rescript-tools CLI.", + "For the full language manual, syntax guide, React docs, ecosystem docs, and website-hosted material outside this repository, also consult https://rescript-lang.org/llms.txt." + ] +} From 216d1d68d487ee97fca6fd53801562270a5ecd4f Mon Sep 17 00:00:00 2001 From: Cristiano Calcagno Date: Sun, 4 Oct 2026 08:18:16 +0100 Subject: [PATCH 4/5] Mark tests/dependencies as vendored in the root .gitattributes Co-Authored-By: Claude Opus 5.5 Signed-off-by: Cristiano Calcagno --- .gitattributes | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitattributes b/.gitattributes index 666eddc88d..127f879135 100644 --- a/.gitattributes +++ b/.gitattributes @@ -6,3 +6,4 @@ *.resi linguist-language=ReScript .yarn/releases/* binary linguist-vendored +tests/dependencies/** linguist-vendored From fa2f8849d7aca382b43f70b2244ef7a89d141aeb Mon Sep 17 00:00:00 2001 From: Cristiano Calcagno Date: Sun, 4 Oct 2026 08:21:14 +0100 Subject: [PATCH 5/5] Describe .gitattributes in CONTRIBUTING.md Co-Authored-By: Claude Opus 5.5 Signed-off-by: Cristiano Calcagno --- CONTRIBUTING.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e47ecb4414..a304ee9ad6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -51,6 +51,8 @@ git clone --depth 1 https://github.com/rescript-lang/rescript.git This will only consume less than 50MB. +[.gitattributes](.gitattributes) checks out every text file with LF line endings, which the committed snapshots and formatters expect on every platform. It also marks the Yarn release and the copied test dependencies in `tests/dependencies` as vendored, which leaves them out of GitHub's language statistics. + ## Installation ### A. Manual installation