Add typescript and esbuild to browserless setup (#8666)

Updated both the update and install scripts to include installation of typescript and esbuild for browserless. This ensures required build dependencies are present before running build commands.
This commit is contained in:
CanbiZ
2025-10-27 12:35:04 -07:00
committed by GitHub
parent 92f9033981
commit 01f1985d2d
2 changed files with 4 additions and 0 deletions

View File

@@ -66,6 +66,8 @@ function update_script() {
$STD unzip "$brwsr_tmp"
mv browserless-"$TAG"/ /opt/browserless
cd /opt/browserless
$STD npm install typescript
$STD npm install esbuild
$STD npm install
rm -rf src/routes/{chrome,edge,firefox,webkit}
$STD node_modules/playwright-core/cli.js install --with-deps chromium

View File

@@ -61,6 +61,8 @@ cd /opt/browserless
$STD npm install
rm -rf src/routes/{chrome,edge,firefox,webkit}
$STD node_modules/playwright-core/cli.js install --with-deps chromium
$STD npm install typescript --save-dev
$STD npm install esbuild --save-dev
$STD npm run build
$STD npm run build:function
$STD npm prune production