mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-15 07:28:05 +00:00
ci: fix custom registry replace logic (#267925)
This commit is contained in:
@@ -34,7 +34,7 @@ async function* getPackageLockFiles(dir) {
|
||||
*/
|
||||
async function setup(url, file) {
|
||||
let contents = await fs.readFile(file, 'utf8');
|
||||
contents = contents.replace(/https:\/\/registry\.[^.]+\.com\//g, url);
|
||||
contents = contents.replace(/https:\/\/registry\.[^.]+\.org\//g, url);
|
||||
await fs.writeFile(file, contents);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user