Skip to content

Commit

Permalink
Fix: include .yml files when preparing for Vale.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <dblock@amazon.com>
  • Loading branch information
dblock committed Nov 11, 2024
1 parent e41257a commit 8f1cbd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/src/prepare-for-vale/KeepDescriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default class KeepDescriptions {

process(): void {
this.root_folder
const files = fg.globSync([`${this.root_folder}/**/*.yaml`])
const files = fg.globSync([`${this.root_folder}/**/*.{yaml,yml}`])
files.forEach((path) => {
this.logger.log(path)
this.process_file(path)
Expand Down
2 changes: 1 addition & 1 deletion tools/tests/prepare-for-vale/KeepDescriptions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import tmp from 'tmp'
describe('KeepDescriptions', () => {
var temp: tmp.DirResult
var fixture_path: string = './tools/tests/prepare-for-vale/fixtures'
var fixtures = fg.globSync(`${fixture_path}/**/*.yaml`)
var fixtures = fg.globSync(`${fixture_path}/**/*.{yaml,yml}`)

describe('defaults', () => {
beforeAll(() => {
Expand Down

0 comments on commit 8f1cbd1

Please sign in to comment.