Skip to content

Commit 04316f1

Browse files
authored
chore(build): make build automatically install browsers (microsoft#36692)
1 parent a6cb009 commit 04316f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/build/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const copyFiles = [];
6868

6969
const watchMode = process.argv.slice(2).includes('--watch');
7070
const withSourceMaps = watchMode;
71-
const installMode = process.argv.slice(2).includes('--install');
71+
const disableInstall = process.argv.slice(2).includes('--disable-install');
7272
const ROOT = path.join(__dirname, '..', '..');
7373

7474
/**
@@ -589,7 +589,7 @@ onChanges.push({
589589
script: 'utils/generate_types/index.js',
590590
});
591591

592-
if (installMode) {
592+
if (watchMode && !disableInstall) {
593593
// Keep browser installs up to date.
594594
onChanges.push({
595595
inputs: ['packages/playwright-core/browsers.json'],

0 commit comments

Comments
 (0)