MDL-78400 JavaScript: Building JS puts build files in src dir on Win.

This commit is contained in:
Gareth Barnard
2023-06-05 14:44:49 +01:00
parent d0d7d578c5
commit 511c36ae30
+1 -2
View File
@@ -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;
};