Fix `configFile` path resolution (#617)

master
Brad Cornes 2022-09-30 15:09:12 +01:00 committed by GitHub
parent f49c7e84a1
commit 72569b00dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1417,10 +1417,10 @@ class TW {
([relativeConfigPath, relativeDocumentSelectorOrSelectors]) => { ([relativeConfigPath, relativeDocumentSelectorOrSelectors]) => {
return { return {
folder: base, folder: base,
configPath: path.join(base, relativeConfigPath), configPath: path.resolve(base, relativeConfigPath),
documentSelector: [] documentSelector: []
.concat(relativeDocumentSelectorOrSelectors) .concat(relativeDocumentSelectorOrSelectors)
.map((selector) => path.join(base, selector)), .map((selector) => path.resolve(base, selector)),
} }
} }
) )