mirror of
https://github.com/electron/electron.git
synced 2026-10-28 11:44:46 +08:00
ts-node was used as a CLI for a handful of TypeScript scripts under script/. Those now rely on the type stripping built into Node.js instead: - script/gen-filenames, check-patch-diff, run-clang-tidy and the release helpers (find-github-release, upload-to-github, github-token, types) are renamed to .mts and invoked with `node`. They use import.meta.dirname and explicit .mts / .js specifiers, and tsconfig.script.json moves to nodenext with verbatimModuleSyntax so tsc checks them the way Node runs them. - The documented minimum Node.js for building goes from 22.12 to 22.18, the first 22.x release with type stripping on by default. - script/codesign/gen-trust.ts and its trust.xml template are deleted; nothing has invoked them since generate-identity.sh switched to a user-scoped keychain in #50058. - oxfmt, oxlint, lint-staged and .gitattributes learn about .mts. ts-node itself stays for now because the spec runner still loads specs through its require hook. Co-authored-by: Claude <noreply@anthropic.com>
37 lines
857 B
Plaintext
37 lines
857 B
Plaintext
# `git apply` and friends don't understand CRLF, even on windows. Force those
|
|
# files to be checked out with LF endings even if core.autocrlf is true.
|
|
*.patch text eol=lf
|
|
DEPS text eol=lf
|
|
yarn.lock text eol=lf
|
|
script/zip_manifests/*.manifest text eol=lf
|
|
patches/**/.patches merge=union
|
|
|
|
# Source code and markdown files should always use LF as line ending.
|
|
*.c text eol=lf
|
|
*.cc text eol=lf
|
|
*.cpp text eol=lf
|
|
*.csv text eol=lf
|
|
*.grd text eol=lf
|
|
*.grdp text eol=lf
|
|
*.gn text eol=lf
|
|
*.gni text eol=lf
|
|
*.h text eol=lf
|
|
*.html text eol=lf
|
|
*.idl text eol=lf
|
|
*.in text eol=lf
|
|
*.js text eol=lf
|
|
*.json text eol=lf
|
|
*.json5 text eol=lf
|
|
*.md text eol=lf
|
|
*.mjs text eol=lf
|
|
*.mm text eol=lf
|
|
*.mojom text eol=lf
|
|
*.mts text eol=lf
|
|
*.patches text eol=lf
|
|
*.proto text eol=lf
|
|
*.py text eol=lf
|
|
*.ps1 text eol=lf
|
|
*.sh text eol=lf
|
|
*.ts text eol=lf
|
|
*.txt text eol=lf
|