Skip to content

Commit 004775f

Browse files
crisbetoandrewseguin
authored andcommitted
build: don't format api golden files (#15568)
As discussed a while ago, we should be formatting the API golden files, because the task that checks them verifies that the files are exactly the same and the formatting throws it off.
1 parent 3987b9b commit 004775f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"publish-release": "ts-node --project tools/release/ tools/release/publish-release.ts",
2626
"check-release-output": "ts-node --project tools/release tools/release/check-release-output.ts",
2727
"preinstall": "node ./tools/npm/check-npm.js",
28-
"format": "git-clang-format"
28+
"format": "git-clang-format HEAD $(git diff HEAD --name-only | grep -v \"\\.d\\.ts\")"
2929
},
3030
"version": "7.3.5",
3131
"requiredAngularVersion": ">=7.0.0",

0 commit comments

Comments
 (0)