Skip to content

Commit 4417a97

Browse files
committed
cherry-pick(#23260): chore: move to npx playwright-core install when using core
1 parent 2f3d88f commit 4417a97

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

packages/playwright-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"./types/structs": "./types/structs.d.ts"
3737
},
3838
"bin": {
39-
"playwright": "./cli.js"
39+
"playwright-core": "./cli.js"
4040
},
4141
"types": "types/types.d.ts"
4242
}

utils/docker/Dockerfile.focal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ RUN mkdir /ms-playwright && \
3737
mkdir /ms-playwright-agent && \
3838
cd /ms-playwright-agent && npm init -y && \
3939
npm i /tmp/playwright-core.tar.gz && \
40-
npx playwright mark-docker-image "${DOCKER_IMAGE_NAME_TEMPLATE}" && \
41-
npx playwright install --with-deps && rm -rf /var/lib/apt/lists/* && \
40+
npx playwright-core mark-docker-image "${DOCKER_IMAGE_NAME_TEMPLATE}" && \
41+
npx playwright-core install --with-deps && rm -rf /var/lib/apt/lists/* && \
4242
rm /tmp/playwright-core.tar.gz && \
4343
chmod -R 777 /ms-playwright

utils/docker/Dockerfile.jammy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ RUN mkdir /ms-playwright && \
3535
mkdir /ms-playwright-agent && \
3636
cd /ms-playwright-agent && npm init -y && \
3737
npm i /tmp/playwright-core.tar.gz && \
38-
npx playwright mark-docker-image "${DOCKER_IMAGE_NAME_TEMPLATE}" && \
39-
npx playwright install --with-deps && rm -rf /var/lib/apt/lists/* && \
38+
npx playwright-core mark-docker-image "${DOCKER_IMAGE_NAME_TEMPLATE}" && \
39+
npx playwright-core install --with-deps && rm -rf /var/lib/apt/lists/* && \
4040
rm /tmp/playwright-core.tar.gz && \
4141
rm -rf /ms-playwright-agent && \
4242
chmod -R 777 /ms-playwright

utils/linux-browser-dependencies/inside_docker/process.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ apt-get update && apt-get install -y curl && \
1212
apt-get update && apt-get install -y apt-file && apt-file update
1313

1414
# Install tip-of-tree playwright-core and browsers
15-
mkdir /root/tmp && cd /root/tmp && npm init -y && npm i /root/hostfolder/playwright-core.tar.gz && npx playwright install
15+
mkdir /root/tmp && cd /root/tmp && npm init -y && npm i /root/hostfolder/playwright-core.tar.gz && npx playwright-core install
1616

1717
cp /root/hostfolder/inside_docker/list_dependencies.js /root/tmp/list_dependencies.js
1818

0 commit comments

Comments
 (0)