diff --git a/ng-dev/format/formatters/prettier.ts b/ng-dev/format/formatters/prettier.ts index 3d83902d7..528e2196a 100644 --- a/ng-dev/format/formatters/prettier.ts +++ b/ng-dev/format/formatters/prettier.ts @@ -21,7 +21,12 @@ export class Prettier extends Formatter { override binaryFilePath = join(this.git.baseDir, 'node_modules/.bin/prettier'); - override defaultFileMatcher = ['**/*.{js,cjs,mjs}', '**/*.{ts,cts,mts}', '**/*.json']; + override defaultFileMatcher = [ + '**/*.{js,cjs,mjs}', + '**/*.{ts,cts,mts}', + '**/*.json', + '**/*.{yml,yaml}', + ]; /** * The configuration path of the prettier config, obtained during construction to prevent needing diff --git a/tools/local-actions/changelog/main.js b/tools/local-actions/changelog/main.js index 84335aee4..59e08c7a2 100644 --- a/tools/local-actions/changelog/main.js +++ b/tools/local-actions/changelog/main.js @@ -48493,7 +48493,12 @@ var require_prettier = __commonJS({ super(...arguments); this.name = "prettier"; this.binaryFilePath = (0, path_12.join)(this.git.baseDir, ""); - this.defaultFileMatcher = ["**/*.{js,cjs,mjs}", "**/*.{ts,cts,mts}", "**/*.json"]; + this.defaultFileMatcher = [ + "**/*.{js,cjs,mjs}", + "**/*.{ts,cts,mts}", + "**/*.json", + "**/*.{yml,yaml}" + ]; this.configPath = this.config["prettier"] ? (0, child_process_1.spawnSync)(this.binaryFilePath, ["--find-config-path", "."]).stdout.trim() : ""; this.actions = { check: {