Skip to content

Commit 7ee03fe

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 76c6fa5 commit 7ee03fe

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
@@ -26,7 +26,7 @@
2626
"publish-release": "ts-node --project tools/release/ tools/release/publish-release.ts",
2727
"check-release-output": "ts-node --project tools/release tools/release/check-release-output.ts",
2828
"preinstall": "node ./tools/npm/check-npm.js",
29-
"format": "git-clang-format"
29+
"format": "git-clang-format HEAD $(git diff HEAD --name-only | grep -v \"\\.d\\.ts\")"
3030
},
3131
"version": "7.3.5",
3232
"requiredAngularVersion": ">=7.0.0",

0 commit comments

Comments
 (0)