Skip to content

Commit 4ce90c0

Browse files
committed
Fix one more case
1 parent a9f1bde commit 4ce90c0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/rush-lib/src/cli/logic/pnpm/PnpmLinkManager.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import * as os from 'os';
66
import * as path from 'path';
77
import uriEncode = require('strict-uri-encode');
88

9-
import { JsonFile } from '@microsoft/node-core-library';
9+
import { JsonFile, Text } from '@microsoft/node-core-library';
1010

1111
import {
1212
BaseLinkManager,
@@ -135,7 +135,7 @@ export class PnpmLinkManager extends BaseLinkManager {
135135
`${unscopedTempProjectName}.tgz`);
136136

137137
// e.g.: C%3A%2Fwbt%2Fcommon%2Ftemp%2Fprojects%2Fapi-documenter.tgz
138-
const escapedPathToTgzFile: string = uriEncode(pathToTgzFile.split(path.sep).join('/'));
138+
const escapedPathToTgzFile: string = uriEncode(Text.replaceAll(pathToTgzFile, path.sep, '/'));
139139

140140
// tslint:disable-next-line:max-line-length
141141
// e.g.: C:\wbt\common\temp\node_modules\.local\C%3A%2Fwbt%2Fcommon%2Ftemp%2Fprojects%2Fapi-documenter.tgz\node_modules

0 commit comments

Comments
 (0)