From e6873a0be471435ee3999061bec556d61c80e375 Mon Sep 17 00:00:00 2001 From: Anurag Hazra Date: Mon, 2 Nov 2020 19:21:16 +0530 Subject: [PATCH] fix: js generate script path.sep (#132) --- scripts/generate-js.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate-js.js b/scripts/generate-js.js index 57c4cea00..63f66f4bf 100644 --- a/scripts/generate-js.js +++ b/scripts/generate-js.js @@ -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);