puppeteer/docker/pack.sh
jrandolf f42336cf83
feat: separate puppeteer and puppeteer-core (#9023)
This PR moves the puppeteer source code into separate mono-repo packages:

- `puppeteer` and `puppeteer-core` are now separated into their own
packages.
- `puppeteer-core` has a new exports called `puppeteer-core/internal`
for internal usage.

Tests and various tools have been updated to accommodate the migration.
2022-10-05 14:17:03 +02:00

16 lines
394 B
Bash
Executable File

#!/bin/bash
# Packs puppeteer using npm and moves the archive file to docker/puppeteer-latest.tgz.
# Expected cwd: project root directory.
set -e
cd docker
npm pack --workspace puppeteer --workspace puppeteer-core --pack-destination .
rm -f puppeteer-core-latest.tgz
rm -f puppeteer-latest.tgz
mv puppeteer-core-*.tgz puppeteer-core-latest.tgz
mv puppeteer-[0-9]*.tgz puppeteer-latest.tgz