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

This commit is contained in:
Gareth Barnard 2023-06-05 13:12:37 +01:00
parent 84bb5725f8
commit 5eed922987
No known key found for this signature in database
GPG Key ID: B3F86F2CCEC3E475

View File

@ -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;
};