Skip to content

Commit 18e3985

Browse files
committed
test
1 parent 374330b commit 18e3985

3 files changed

Lines changed: 26 additions & 3 deletions

File tree

patches/@puppeteer__browsers.patch

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
diff --git a/lib/cjs/CLI.js b/lib/cjs/CLI.js
2+
index a4746096241ebaaf7b3eca40a6d8b0fd13191118..c31962a01016f06f8f192fd4c3e7b8ad0f1fa12d 100644
3+
--- a/lib/cjs/CLI.js
4+
+++ b/lib/cjs/CLI.js
5+
@@ -177,6 +177,8 @@ class CLI {
6+
default: false,
7+
});
8+
}, async (args) => {
9+
+ console.log('args.browser', args.browser);
10+
+ console.log('pinnedBrowsers', this.#pinnedBrowsers);
11+
if (this.#pinnedBrowsers && !args.browser) {
12+
// Use allSettled to avoid scenarios that
13+
// a browser may fail early and leave the other
14+
@@ -303,6 +305,7 @@ class CLI {
15+
: 'latest';
16+
}
17+
async #install(args) {
18+
+ console.log('start install', args);
19+
args.platform ??= (0, detectPlatform_js_1.detectBrowserPlatform)();
20+
if (!args.browser) {
21+
throw new Error(`No browser arg provided`);

pnpm-lock.yaml

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ allowBuilds:
55
simple-git-hooks: true
66
spawn-sync: false
77
patchedDependencies:
8+
'@puppeteer/browsers': patches/@puppeteer__browsers.patch
89
lodash: patches/lodash.patch
910
lodash-es: patches/lodash-es.patch
1011
puppeteer: patches/puppeteer.patch

0 commit comments

Comments
 (0)