Skip to content

Commit

Permalink
Fix Gulpfile path separator issue on Windows (#13795)
Browse files Browse the repository at this point in the history
  • Loading branch information
NotWearingPants committed Sep 26, 2021
1 parent 14572e1 commit 26d0a7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Gulpfile.mjs
Expand Up @@ -53,9 +53,9 @@ const buildTypingsWatchGlob = [
* @returns {string}
*/
function mapSrcToLib(srcPath) {
const parts = srcPath.replace(/(?<!\.d)\.ts$/, ".js").split(path.sep);
const parts = srcPath.replace(/(?<!\.d)\.ts$/, ".js").split("/");
parts[2] = "lib";
return parts.join(path.sep);
return parts.join("/");
}

function mapToDts(packageName) {
Expand Down

0 comments on commit 26d0a7e

Please sign in to comment.