Fix Gulpfile path separator issue on Windows (#13795)

This commit is contained in:
NotWearingPants 2021-09-27 00:51:05 +03:00 committed by GitHub
parent 14572e1881
commit 26d0a7e10f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,9 +53,9 @@ const buildTypingsWatchGlob = [
* @returns {string} * @returns {string}
*/ */
function mapSrcToLib(srcPath) { function mapSrcToLib(srcPath) {
const parts = srcPath.replace(/(?<!\.d)\.ts$/, ".js").split(path.sep); const parts = srcPath.replace(/(?<!\.d)\.ts$/, ".js").split("/");
parts[2] = "lib"; parts[2] = "lib";
return parts.join(path.sep); return parts.join("/");
} }
function mapToDts(packageName) { function mapToDts(packageName) {