From 511c36ae3023167f747573b8a81090f421e3f1d5 Mon Sep 17 00:00:00 2001 From: Gareth Barnard <1058419+gjb2048@users.noreply.github.com> Date: Mon, 5 Jun 2023 13:38:06 +0100 Subject: [PATCH] MDL-78400 JavaScript: Building JS puts build files in src dir on Win. --- Gruntfile.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 71353fc14e1..feb7a38eb0c 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -229,8 +229,7 @@ module.exports = function(grunt) { * @return {String} The rewritten destination path. */ var 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; };