fix: Unix build (#39)

This commit is contained in:
Eric Tuvesson
2023-10-10 10:58:42 +02:00
committed by GitHub
parent c5a38f1176
commit 08dbea1343

View File

@@ -26,7 +26,7 @@ function copyNodeMarkdowns(dir, asFolderName) {
let outputFilePath = 'build/' + filePath;
if (asFolderName) {
// HACK: Resolve the new nodes folder structure
outputFilePath = 'build/' + filePath.split("\\").slice(0, -1).join("/") + '.md'
outputFilePath = 'build/' + filePath.split(/\\|\//).slice(0, -1).join("/") + '.md'
}
if (!fs.existsSync('build/' + dir)) {