Skip to content

Commit

Permalink
fix: js generate script path.sep
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraghazra committed Nov 2, 2020
1 parent 75c612f commit 21c96b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate-js.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const generateJsFiles = filePath => {

const templateDir = path.join(
process.cwd(),
templateFilePath.substring(0, templateFilePath.lastIndexOf("/")),
templateFilePath.substring(0, templateFilePath.lastIndexOf(path.sep)),
);

createDirectory(templateDir);
Expand Down

0 comments on commit 21c96b4

Please sign in to comment.