Fix `configFile` path resolution (#617)
parent
f49c7e84a1
commit
72569b00dd
|
@ -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)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue