Skip to content

Commit

Permalink
chore!: remove detection of yaml and tpl files (#155)
Browse files Browse the repository at this point in the history
* chore: remove detection of yaml and tpl files

* chore: build

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
Kamil Winczek and github-actions[bot] authored Jul 19, 2022
1 parent c80006b commit 0847e83
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
8 changes: 0 additions & 8 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

7 changes: 0 additions & 7 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,6 @@ export function getModulePaths<T extends Record<string, unknown>>(
}
if (ext === '.tf' || base === '.terraform.lock.hcl') {
paths.push(dir)
} else if (ext.match(/ya?ml/) !== null || ext === '.tpl') {
const splitPath = dir.split('/')
splitPath.pop()
// Do not return root directory as module
if (dir !== '') {
paths.push(splitPath.join('/'))
}
}
return paths
}, [])
Expand Down

0 comments on commit 0847e83

Please sign in to comment.