mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-11-13 09:05:17 +00:00
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:
committed by
Michel Roegl-Brunner
parent
c463c794f0
commit
39e8659658
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user