Fix Gulpfile path separator issue on Windows (#13795)
This commit is contained in:
parent
14572e1881
commit
26d0a7e10f
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user