Skip to content

Commit c1bbb1b

Browse files
committed
fix(check-api): emit LF in api-extractor reports (newlineKind) so they don't trip git's whitespace gate
1 parent 39ccbbb commit c1bbb1b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scripts/check-api.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ const checkEntry = (entry) => {
5353
tempConfigPath,
5454
JSON.stringify({
5555
projectFolder: packageDir,
56+
// api-extractor defaults to CRLF; force LF so the committed reports don't trip
57+
// git's whitespace gate or churn across platforms.
58+
newlineKind: 'lf',
5659
mainEntryPointFilePath: resolve(packageDir, entry.types),
5760
compiler: { tsconfigFilePath: resolve(packageDir, 'tsconfig.json') },
5861
apiReport: {

0 commit comments

Comments
 (0)