Skip to content

Commit

Permalink
[lint] ensure script path is not absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Nov 17, 2024
1 parent bdcbe09 commit b5d8e75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/lint/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ async function main() {
const files = baseCommit ? await getChangedFiles(baseCommit) : undefined

let scripts = mightLintScripts(files, ignoreScripts, commandFilters)
? globSync('scripts/*/src/main.ts').map(p => path.resolve(p, '../..'))
? globSync('scripts/*/src/main.ts').map(p => path.dirname(path.dirname(p)))
: []

if (files) {
Expand Down

0 comments on commit b5d8e75

Please sign in to comment.