Skip to content

Commit

Permalink
fix: Unix build (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
erictuvesson authored Oct 10, 2023
1 parent c5a38f1 commit 08dbea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/copy-node-markdowns.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 08dbea1

Please sign in to comment.