fix: upgrade the puppteer version to enable the screenshot.ts (#2863) (#2866)

the ts is not compatible with Deno 2.0 and cannot generate project
screenshots. #2863

the old verison made by 3 year ago.
This commit is contained in:
zhizheng
2025-04-28 15:11:10 +02:00
committed by GitHub
parent d077130b05
commit ca6493757e
+3 -2
View File
@@ -1,6 +1,6 @@
import puppeteer from "https://deno.land/x/puppeteer@16.2.0/mod.ts";
import puppeteer from "npm:puppeteer@22.4.1";
import { Image } from "https://deno.land/x/imagescript@1.2.17/mod.ts";
import { join } from "https://deno.land/std@0.216.0/path/mod.ts";
import { join } from "@std/path";
const url = Deno.args[0];
const id = Deno.args[1];
@@ -26,6 +26,7 @@ if (!id) {
const outDir = "./www/static/showcase";
const browser = await puppeteer.launch({
defaultViewport: { width: 1200, height: 675 },
headless: "new",
});
const page = await browser.newPage();
await page.goto(url, { waitUntil: "networkidle2" });