mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-03-15 22:15:18 -05:00
Fix playright browser installs due to upstream breaking change (#55740)
This commit is contained in:
@@ -5,15 +5,7 @@ import {
|
||||
import {
|
||||
join,
|
||||
} from "path";
|
||||
|
||||
let playwright;
|
||||
try {
|
||||
// @ts-ignore-error
|
||||
playwright = await import("playwright");
|
||||
}
|
||||
catch (error) {
|
||||
throw new Error("Playwright is expected to be installed manually before running this script");
|
||||
}
|
||||
import playwright from "playwright";
|
||||
|
||||
// Turning this on will leave the Chromium browser open, giving you the
|
||||
// chance to open up the web inspector.
|
||||
|
||||
Reference in New Issue
Block a user