From 257e2b414a8f8d42adbf4c908ea83d7a404263aa Mon Sep 17 00:00:00 2001 From: Gareth Barnard <1058419+gjb2048@users.noreply.github.com> Date: Mon, 5 Jun 2023 13:12:37 +0100 Subject: [PATCH] MDL-78400 JavaScript: Building JS puts build files in src dir on Win. --- .grunt/tasks/javascript.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.grunt/tasks/javascript.js b/.grunt/tasks/javascript.js index faf5223054e..19ece75d5b2 100644 --- a/.grunt/tasks/javascript.js +++ b/.grunt/tasks/javascript.js @@ -31,8 +31,7 @@ * @return {String} The rewritten destination path. */ const babelRename = function(destPath, srcPath) { - const path = require('path'); - destPath = srcPath.replace(`amd${path.sep}src`, `amd${path.sep}build`); + destPath = srcPath.replace(`amd/src`, `amd/build`); destPath = destPath.replace(/\.js$/, '.min.js'); return destPath; };