Skip to content

Commit

Permalink
fix: js generate script path.sep (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraghazra authored Nov 2, 2020
1 parent 75c612f commit e6873a0
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 e6873a0

Please sign in to comment.