Skip to content

Commit

Permalink
Fix Gulpfile path separator issue on Windows (#13794)
Browse files Browse the repository at this point in the history
  • Loading branch information
NotWearingPants committed Sep 26, 2021
1 parent 14572e1 commit 4abf13e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Gulpfile.mjs
Original file line number Diff line number Diff line change
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 4abf13e

Please sign in to comment.