From 08dbea134346a23a1e351e43b06aad091441ccdd Mon Sep 17 00:00:00 2001 From: Eric Tuvesson Date: Tue, 10 Oct 2023 10:58:42 +0200 Subject: [PATCH] fix: Unix build (#39) --- plugins/copy-node-markdowns.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/copy-node-markdowns.js b/plugins/copy-node-markdowns.js index 622d94f..105f01d 100644 --- a/plugins/copy-node-markdowns.js +++ b/plugins/copy-node-markdowns.js @@ -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)) {