fix(babel-plugin-extend-docs): use posix path join for posix type path
This commit is contained in:
parent
8958b2fa02
commit
4441945d05
1 changed files with 2 additions and 2 deletions
|
|
@ -5,8 +5,8 @@ function joinPaths(a, b) {
|
||||||
if (a && a === b.substring(0, a.length)) {
|
if (a && a === b.substring(0, a.length)) {
|
||||||
joinMe = b.substring(a.length + 1);
|
joinMe = b.substring(a.length + 1);
|
||||||
}
|
}
|
||||||
const updatedPath = path.join(a, joinMe);
|
// Normalize for windows
|
||||||
// console.log({ a, b, updatedPath });
|
const updatedPath = path.posix.join(a, joinMe);
|
||||||
|
|
||||||
if (a === '' && b.startsWith('./')) {
|
if (a === '' && b.startsWith('./')) {
|
||||||
return `./${updatedPath}`;
|
return `./${updatedPath}`;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue