Skip to content

Commit

Permalink
fix: cant use .split on non string (#111)
Browse files Browse the repository at this point in the history
* fix: cant use .split on non string

* chore: build

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
SamTealeDrest and github-actions[bot] authored Feb 1, 2022
1 parent fec3e60 commit 0430e24
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 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.

2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ 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') {
paths.push(dir.split('/').at(-2)!)
paths.push(dir.toString().split('/').at(-2)!)
}
return paths
}, [])
Expand Down

0 comments on commit 0430e24

Please sign in to comment.